Skip to content

Commit 4bf826d

Browse files
authored
Merge pull request #588 from JohanMabille/fix
Fixed batch of complex constructor for win32
2 parents c6bdf73 + f923591 commit 4bf826d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/xsimd/types/xsimd_batch.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ struct batch<std::complex<T>, A> {
247247
batch(real_batch const& real) : m_real(real), m_imag(0) {}
248248
batch(T val) : m_real(val), m_imag(0) {}
249249
batch(std::initializer_list<value_type> data) { *this = load_unaligned(data.begin()); }
250-
explicit batch(batch_bool_type b);
250+
explicit batch(batch_bool_type const& b);
251251

252252
static XSIMD_NO_DISCARD batch load_aligned(const T* real_src, const T* imag_src=nullptr);
253253
static XSIMD_NO_DISCARD batch load_unaligned(const T* real_src, const T* imag_src=nullptr);
@@ -568,7 +568,7 @@ batch_bool<T, A> batch_bool<T, A>::load_unaligned(bool const* mem) {
568568
//
569569

570570
template <class T, class A>
571-
batch<std::complex<T>, A>::batch(batch_bool_type b)
571+
batch<std::complex<T>, A>::batch(batch_bool_type const& b)
572572
: m_real(b), m_imag(0)
573573
{
574574
}

0 commit comments

Comments
 (0)