Commit 91ee22ca authored by Jan Möbius's avatar Jan Möbius

Merge branch 'fixMSVC2015Community' into 'master'

fixes MSVC Community 2015 ICE

The default constructors are now used as template specializations by
postponing them below the template definition

See merge request !67
parents d3c38be0 4b8f1bf6
Pipeline #2018 passed with stage
in 65 minutes and 23 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