[PATCH] D132319: [ADT] Replace `void_t` equivalent with `std::void_t`
Joe Loser via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 21 06:54:39 PDT 2022
jloser updated this revision to Diff 454306.
jloser added a comment.
Rebase to make sure CI failure is unrelated
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132319/new/
https://reviews.llvm.org/D132319
Files:
llvm/include/llvm/ADT/STLExtras.h
Index: llvm/include/llvm/ADT/STLExtras.h
===================================================================
--- llvm/include/llvm/ADT/STLExtras.h
+++ llvm/include/llvm/ADT/STLExtras.h
@@ -77,12 +77,11 @@
};
namespace detail {
-template <typename...> using void_t = void;
template <class, template <class...> class Op, class... Args> struct detector {
using value_t = std::false_type;
};
template <template <class...> class Op, class... Args>
-struct detector<void_t<Op<Args...>>, Op, Args...> {
+struct detector<std::void_t<Op<Args...>>, Op, Args...> {
using value_t = std::true_type;
};
} // end namespace detail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132319.454306.patch
Type: text/x-patch
Size: 630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220821/b41c2980/attachment.bin>
More information about the llvm-commits
mailing list