File tree Expand file tree Collapse file tree 5 files changed +14
-6
lines changed
test/std/language.support/support.limits/support.limits.general Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -418,6 +418,8 @@ Status
418418 ---------------------------------------------------------- -----------------
419419 ``__cpp_lib_atomic_min_max `` *unimplemented *
420420 ---------------------------------------------------------- -----------------
421+ ``__cpp_lib_atomic_ref `` ``202411L ``
422+ ---------------------------------------------------------- -----------------
421423 ``__cpp_lib_bind_front `` ``202306L ``
422424 ---------------------------------------------------------- -----------------
423425 ``__cpp_lib_bitset `` ``202306L ``
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ __cpp_lib_atomic_float 201711L <atomic>
3737__cpp_lib_atomic_is_always_lock_free 201603L <atomic>
3838__cpp_lib_atomic_lock_free_type_aliases 201907L <atomic>
3939__cpp_lib_atomic_min_max 202403L <atomic>
40- __cpp_lib_atomic_ref 201806L <atomic>
40+ __cpp_lib_atomic_ref 202411L <atomic>
41+ 201806L // C++20
4142__cpp_lib_atomic_shared_ptr 201711L <atomic>
4243__cpp_lib_atomic_value_initialization 201911L <atomic> <memory>
4344__cpp_lib_atomic_wait 201907L <atomic>
@@ -546,6 +547,8 @@ __cpp_lib_void_t 201411L <type_traits>
546547# define __cpp_lib_aligned_accessor 202411L
547548// # define __cpp_lib_associative_heterogeneous_insertion 202306L
548549// # define __cpp_lib_atomic_min_max 202403L
550+ # undef __cpp_lib_atomic_ref
551+ # define __cpp_lib_atomic_ref 202411L
549552# undef __cpp_lib_bind_front
550553# define __cpp_lib_bind_front 202306L
551554# define __cpp_lib_bitset 202306L
Original file line number Diff line number Diff line change 367367# ifndef __cpp_lib_atomic_ref
368368# error "__cpp_lib_atomic_ref should be defined in c++26"
369369# endif
370- # if __cpp_lib_atomic_ref != 201806L
371- # error "__cpp_lib_atomic_ref should have the value 201806L in c++26"
370+ # if __cpp_lib_atomic_ref != 202411L
371+ # error "__cpp_lib_atomic_ref should have the value 202411L in c++26"
372372# endif
373373
374374# if !defined(_LIBCPP_VERSION)
Original file line number Diff line number Diff line change 63376337# ifndef __cpp_lib_atomic_ref
63386338# error "__cpp_lib_atomic_ref should be defined in c++26"
63396339# endif
6340- # if __cpp_lib_atomic_ref != 201806L
6341- # error "__cpp_lib_atomic_ref should have the value 201806L in c++26"
6340+ # if __cpp_lib_atomic_ref != 202411L
6341+ # error "__cpp_lib_atomic_ref should have the value 202411L in c++26"
63426342# endif
63436343
63446344# if !defined(_LIBCPP_VERSION)
Original file line number Diff line number Diff line change @@ -195,7 +195,10 @@ def add_version_header(tc):
195195 },
196196 {
197197 "name" : "__cpp_lib_atomic_ref" ,
198- "values" : {"c++20" : 201806 },
198+ "values" : {
199+ "c++20" : 201806 ,
200+ "c++26" : 202411 , # P2835R7: Expose std::atomic_ref 's object address
201+ },
199202 "headers" : ["atomic" ],
200203 },
201204 {
You can’t perform that action at this time.
0 commit comments