From c030ba64e482b0dea2ef1e06e0ca1f3e27727334 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 4 Mar 2020 14:38:51 -0500 Subject: [PATCH] [libc++] Avoid deprecation warning in the implementation of __has_rebind --- libcxx/include/memory | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcxx/include/memory b/libcxx/include/memory index bea55d6..bf31bfc 100644 --- a/libcxx/include/memory +++ b/libcxx/include/memory @@ -847,7 +847,9 @@ struct __has_rebind private: struct __two {char __lx; char __lxx;}; template static __two __test(...); + _LIBCPP_SUPPRESS_DEPRECATED_PUSH template static char __test(typename _Xp::template rebind<_Up>* = 0); + _LIBCPP_SUPPRESS_DEPRECATED_POP public: static const bool value = sizeof(__test<_Tp>(0)) == 1; }; -- 2.7.4