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
This commit is contained in:
Jan Möbius
2016-05-24 15:15:59 +02:00

View File

@@ -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;