Commit 4b8f1bf6 authored by Martin Schultz's avatar Martin Schultz

fixes MSVC Community 2015 ICE

The default constructors are now used as template specializations by
postponing them below the template definition
parent d3c38be0
Pipeline #2017 passed with stage
in 76 minutes and 53 seconds
......@@ -112,16 +112,6 @@ class VectorT {
//-------------------------------------------------------------- constructors
/// default constructor creates uninitialized values.
constexpr VectorT() {}
/**
* Creates a vector with all components set to v.
*/
explicit VectorT(const Scalar &v) {
vectorize(v);
}
template<typename ... T,
typename = typename std::enable_if<sizeof...(T) == DIM>::type,
typename = typename std::enable_if<
......@@ -133,6 +123,16 @@ class VectorT {
"Not all components are convertible to Scalar.");
}
/// default constructor creates uninitialized values.
constexpr VectorT() {}
/**
* Creates a vector with all components set to v.
*/
explicit VectorT(const Scalar &v) {
vectorize(v);
}
VectorT(const VectorT &rhs) = default;
VectorT(VectorT &&rhs) = default;
VectorT &operator=(const VectorT &rhs) = default;
......
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