[libc++] Avoid deprecation warning in the implementation of __has_rebind
authorLouis Dionne <ldionne@apple.com>
Wed, 4 Mar 2020 19:38:51 +0000 (14:38 -0500)
committerLouis Dionne <ldionne@apple.com>
Wed, 4 Mar 2020 19:38:51 +0000 (14:38 -0500)
libcxx/include/memory

index bea55d6..bf31bfc 100644 (file)
@@ -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;
 };