From 991ffede795a60b3bf8765601afda1ef02424ee8 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sun, 18 Apr 2021 22:56:53 -0400 Subject: [PATCH] Check is_convertible_v in variadic constructor --- include/athena/simd/parallelism_v2_simd.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/athena/simd/parallelism_v2_simd.hpp b/include/athena/simd/parallelism_v2_simd.hpp index 824a0d6..732d077 100644 --- a/include/athena/simd/parallelism_v2_simd.hpp +++ b/include/athena/simd/parallelism_v2_simd.hpp @@ -1518,9 +1518,10 @@ public: const __simd_storage<_Up, __simd_abi<_StorageKind::_Array, __Unum_element>>& other) { std::copy(other.__native().begin(), other.__native().end(), __storage_.begin()); } - template = 0> + template ), bool> = true, + std::enable_if_t = true> constexpr __simd_storage(_T2... values) : __storage_{values...} {} - template = 0> + template = true> constexpr __simd_storage(_Tp __rv) : __storage_{__rv, __rv, __rv, __rv} {} constexpr const storage_type& __native() const { return __storage_; } };