Skip to content

Commit cb00fb1

Browse files
committed
Upped version value
1 parent 827cc8a commit cb00fb1

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

libcxx/docs/FeatureTestMacroTable.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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``

libcxx/include/version

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

libcxx/test/std/language.support/support.limits/support.limits.general/atomic.version.compile.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@
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)

libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6337,8 +6337,8 @@
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)

libcxx/utils/generate_feature_test_macro_components.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)