Commit d73ed7bb authored by Clemens Backes's avatar Clemens Backes Committed by V8 LUCI CQ

[base] Remove base::void_t

Use C++17's std::void_t instead.

R=leszeks@chromium.org

Bug: v8:12425
Change-Id: I1367af170505ed97a725e22f6b60cce056f72cb1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3568476Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79783}
parent c93098f2
......@@ -89,15 +89,6 @@ constexpr bool all(Args... rest) {
return fold(std::logical_and<>{}, true, rest...);
}
template <class... Ts>
struct make_void {
using type = void;
};
// Corresponds to C++17's std::void_t.
// Used for SFINAE based on type errors.
template <class... Ts>
using void_t = typename make_void<Ts...>::type;
// Corresponds to C++17's std::conjunction
template <class...>
struct conjunction : std::true_type {};
......
......@@ -185,7 +185,7 @@ struct MachineRepresentationOf {
// If T defines kMachineType, then we take the machine representation from
// there.
template <class T>
struct MachineRepresentationOf<T, base::void_t<decltype(T::kMachineType)>> {
struct MachineRepresentationOf<T, std::void_t<decltype(T::kMachineType)>> {
static const MachineRepresentation value = T::kMachineType.representation();
};
template <class T>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment