Skip to content

Commit c030ba6

Browse files
committed
[libc++] Avoid deprecation warning in the implementation of __has_rebind
1 parent 3c96d01 commit c030ba6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcxx/include/memory

+2
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,9 @@ struct __has_rebind
847847
private:
848848
struct __two {char __lx; char __lxx;};
849849
template <class _Xp> static __two __test(...);
850+
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
850851
template <class _Xp> static char __test(typename _Xp::template rebind<_Up>* = 0);
852+
_LIBCPP_SUPPRESS_DEPRECATED_POP
851853
public:
852854
static const bool value = sizeof(__test<_Tp>(0)) == 1;
853855
};

0 commit comments

Comments
 (0)