projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c96d01
)
[libc++] Avoid deprecation warning in the implementation of __has_rebind
author
Louis Dionne
<ldionne@apple.com>
Wed, 4 Mar 2020 19:38:51 +0000
(14:38 -0500)
committer
Louis Dionne
<ldionne@apple.com>
Wed, 4 Mar 2020 19:38:51 +0000
(14:38 -0500)
libcxx/include/memory
patch
|
blob
|
history
diff --git
a/libcxx/include/memory
b/libcxx/include/memory
index
bea55d6
..
bf31bfc
100644
(file)
--- 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;
};