Skip to content

Commit 5aca9a4

Browse files
committed
Removed backport of void_t
1 parent 82a37aa commit 5aca9a4

4 files changed

Lines changed: 5 additions & 23 deletions

File tree

include/xsimd/arch/common/xsimd_common_details.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,11 @@ namespace xsimd
301301
using type = with_slow_conversion;
302302
};
303303

304-
using xsimd::detail::void_t;
305-
306304
template <class A, class From, class To>
307305
struct conversion_type_impl<A, From, To,
308-
void_t<decltype(fast_cast(std::declval<const batch<From, A>&>(),
309-
std::declval<const batch<To, A>&>(),
310-
std::declval<const A&>()))>>
306+
std::void_t<decltype(fast_cast(std::declval<const batch<From, A>&>(),
307+
std::declval<const batch<To, A>&>(),
308+
std::declval<const A&>()))>>
311309
{
312310
using type = with_fast_conversion;
313311
};

include/xsimd/memory/xsimd_alignment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace xsimd
7474
};
7575

7676
template <class C>
77-
struct container_alignment<C, detail::void_t<typename C::allocator_type>>
77+
struct container_alignment<C, std::void_t<typename C::allocator_type>>
7878
{
7979
using type = allocator_alignment_t<typename C::allocator_type>;
8080
};

include/xsimd/types/xsimd_api.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ namespace xsimd
371371
template <class Arch, class Batch, class BatchConstant>
372372
struct has_bitwise_lshift_batch_const<
373373
Arch, Batch, BatchConstant,
374-
void_t<decltype(kernel::bitwise_lshift<Arch>(
374+
std::void_t<decltype(kernel::bitwise_lshift<Arch>(
375375
std::declval<Batch>(), std::declval<BatchConstant>(), Arch {}))>>
376376
: std::true_type
377377
{

include/xsimd/types/xsimd_utils.hpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -291,22 +291,6 @@ namespace xsimd
291291
}
292292
}
293293

294-
/*********************************
295-
* Backport of void_t from C++17 *
296-
*********************************/
297-
298-
namespace detail
299-
{
300-
template <class... T>
301-
struct make_void
302-
{
303-
using type = void;
304-
};
305-
306-
template <class... T>
307-
using void_t = typename make_void<T...>::type;
308-
}
309-
310294
/**************************************************
311295
* Equivalent of void_t but with size_t parameter *
312296
**************************************************/

0 commit comments

Comments
 (0)