Skip to content

Commit f350f7f

Browse files
committed
Undo cxx03 changes
1 parent d878901 commit f350f7f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

libcxx/include/__cxx03/__atomic/cxx_atomic_impl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
#include <__cxx03/__config>
1515
#include <__cxx03/__memory/addressof.h>
1616
#include <__cxx03/__type_traits/is_assignable.h>
17-
#include <__cxx03/__type_traits/is_same.h>
1817
#include <__cxx03/__type_traits/is_trivially_copyable.h>
1918
#include <__cxx03/__type_traits/remove_const.h>
20-
#include <__cxx03/__type_traits/remove_cv.h>
2119
#include <__cxx03/cstddef>
2220

2321
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -502,8 +500,6 @@ __cxx_atomic_fetch_xor(__cxx_atomic_base_impl<_Tp>* __a, _Tp __pattern, memory_o
502500
template <typename _Tp, typename _Base = __cxx_atomic_base_impl<_Tp> >
503501
struct __cxx_atomic_impl : public _Base {
504502
static_assert(is_trivially_copyable<_Tp>::value, "std::atomic<T> requires that 'T' be a trivially copyable type");
505-
static_assert(is_same<_Tp, typename remove_cv<_Tp>::type>::value,
506-
"std::atomic<T> requires that 'T' be a cv-unqualified type");
507503

508504
_LIBCPP_HIDE_FROM_ABI __cxx_atomic_impl() _NOEXCEPT = default;
509505
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR explicit __cxx_atomic_impl(_Tp __value) _NOEXCEPT : _Base(__value) {}

0 commit comments

Comments
 (0)