[libcxx-commits] [PATCH] D80481: [libcxx] Fix deprecation warning by suppressing deprecated around __test_has_construct

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat May 23 14:51:30 PDT 2020


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6e48a6e407bf: [libcxx] Fix deprecation warning by suppressing deprecated around… (authored by zoecarver).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80481/new/

https://reviews.llvm.org/D80481

Files:
  libcxx/include/memory


Index: libcxx/include/memory
===================================================================
--- libcxx/include/memory
+++ libcxx/include/memory
@@ -1352,9 +1352,12 @@
 
 #endif  // _LIBCPP_CXX03_LANG
 
+_LIBCPP_SUPPRESS_DEPRECATED_PUSH
 template <class _Alloc, class ..._Args,
     class = decltype(_VSTD::declval<_Alloc>().construct(_VSTD::declval<_Args>()...))>
 static true_type __test_has_construct(int);
+_LIBCPP_SUPPRESS_DEPRECATED_POP
+
 template <class _Alloc, class...>
 static false_type __test_has_construct(...);
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80481.265892.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200523/1f9ccd9a/attachment-0001.bin>


More information about the libcxx-commits mailing list