[libcxx-commits] [libcxx] [libc++] Put _LIBCPP_NODEBUG on allocator trait aliases. (PR #118835)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 5 10:22:48 PST 2024


================
@@ -253,11 +251,11 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits {
 #else  // _LIBCPP_CXX03_LANG
   template <class _Tp>
   struct rebind_alloc {
-    using other = __allocator_traits_rebind_t<allocator_type, _Tp>;
+    using other _LIBCPP_NODEBUG = __allocator_traits_rebind_t<allocator_type, _Tp>;
   };
   template <class _Tp>
   struct rebind_traits {
-    using other = allocator_traits<typename rebind_alloc<_Tp>::other>;
+    using other _LIBCPP_NODEBUG = allocator_traits<typename rebind_alloc<_Tp>::other>;
----------------
ldionne wrote:

Same question here.

https://github.com/llvm/llvm-project/pull/118835


More information about the libcxx-commits mailing list