Skip to content

Commit

Permalink
MSVC: drop previous workaround after MSVC broke compat
Browse files Browse the repository at this point in the history
Previously the default ctor here was reported as "multiple versions of a
defaulted special member functions". Looks like the bug was fixed in
MSVC and the workaround now makes the code ill-formed.

Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Sep 18, 2018
1 parent 71a4332 commit 510396e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Vc/common/simdarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ class SimdArray<T, N, VectorType_, N>
static constexpr std::size_t MemoryAlignment = storage_type::MemoryAlignment;

// zero init
#ifndef Vc_MSVC // bogus error C2580
Vc_INTRINSIC SimdArray() = default;
#endif

// default copy ctor/operator
Vc_INTRINSIC SimdArray(const SimdArray &) = default;
Expand Down Expand Up @@ -724,9 +722,7 @@ template <typename T, size_t N, typename V, size_t Wt> class SimdArray
///@{

///\copydoc Vector::Vector()
#ifndef Vc_MSVC // bogus error C2580
SimdArray() = default;
#endif
///@}

/// \name Conversion/Broadcast Constructors
Expand Down

0 comments on commit 510396e

Please sign in to comment.