Skip to content

Commit 291808e

Browse files
committed
Restore _LIBCPP_NODEBUG to the CXX03 aliases.
1 parent 7989aad commit 291808e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libcxx/include/__memory/allocator_traits.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct __const_pointer {
5858
template <class _Tp, class _Ptr, class _Alloc>
5959
struct __const_pointer<_Tp, _Ptr, _Alloc, false> {
6060
#ifdef _LIBCPP_CXX03_LANG
61-
using type = typename pointer_traits<_Ptr>::template rebind<const _Tp>::other;
61+
using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<const _Tp>::other;
6262
#else
6363
using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<const _Tp>;
6464
#endif
@@ -88,7 +88,7 @@ struct __const_void_pointer {
8888
template <class _Ptr, class _Alloc>
8989
struct __const_void_pointer<_Ptr, _Alloc, false> {
9090
#ifdef _LIBCPP_CXX03_LANG
91-
using type = typename pointer_traits<_Ptr>::template rebind<const void>::other;
91+
using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<const void>::other;
9292
#else
9393
using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<const void>;
9494
#endif
@@ -253,9 +253,9 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits {
253253

254254
#ifndef _LIBCPP_CXX03_LANG
255255
template <class _Tp>
256-
using rebind_alloc = __allocator_traits_rebind_t<allocator_type, _Tp>;
256+
using rebind_alloc _LIBCPP_NODEBUG = __allocator_traits_rebind_t<allocator_type, _Tp>;
257257
template <class _Tp>
258-
using rebind_traits = allocator_traits<rebind_alloc<_Tp> >;
258+
using rebind_traits _LIBCPP_NODEBUG = allocator_traits<rebind_alloc<_Tp> >;
259259
#else // _LIBCPP_CXX03_LANG
260260
template <class _Tp>
261261
struct rebind_alloc {
@@ -358,7 +358,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits {
358358

359359
#ifndef _LIBCPP_CXX03_LANG
360360
template <class _Traits, class _Tp>
361-
using __rebind_alloc = typename _Traits::template rebind_alloc<_Tp>;
361+
using __rebind_alloc _LIBCPP_NODEBUG = typename _Traits::template rebind_alloc<_Tp>;
362362
#else
363363
template <class _Traits, class _Tp>
364364
using __rebind_alloc _LIBCPP_NODEBUG = typename _Traits::template rebind_alloc<_Tp>::other;

0 commit comments

Comments
 (0)