[libcxx-commits] [libcxx] c030ba6 - [libc++] Avoid deprecation warning in the implementation of __has_rebind

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 4 11:39:35 PST 2020


Author: Louis Dionne
Date: 2020-03-04T14:38:51-05:00
New Revision: c030ba64e482b0dea2ef1e06e0ca1f3e27727334

URL: https://github.com/llvm/llvm-project/commit/c030ba64e482b0dea2ef1e06e0ca1f3e27727334
DIFF: https://github.com/llvm/llvm-project/commit/c030ba64e482b0dea2ef1e06e0ca1f3e27727334.diff

LOG: [libc++] Avoid deprecation warning in the implementation of __has_rebind

Added: 
    

Modified: 
    libcxx/include/memory

Removed: 
    


################################################################################
diff  --git a/libcxx/include/memory b/libcxx/include/memory
index bea55d65fb99..bf31bfca5130 100644
--- a/libcxx/include/memory
+++ b/libcxx/include/memory
@@ -847,7 +847,9 @@ struct __has_rebind
 private:
     struct __two {char __lx; char __lxx;};
     template <class _Xp> static __two __test(...);
+    _LIBCPP_SUPPRESS_DEPRECATED_PUSH
     template <class _Xp> static char __test(typename _Xp::template rebind<_Up>* = 0);
+    _LIBCPP_SUPPRESS_DEPRECATED_POP
 public:
     static const bool value = sizeof(__test<_Tp>(0)) == 1;
 };


        


More information about the libcxx-commits mailing list