diff options
Diffstat (limited to 'src/Math/Matrix.hpp')
| -rw-r--r-- | src/Math/Matrix.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Math/Matrix.hpp b/src/Math/Matrix.hpp index 545b6a5..276dc4a 100644 --- a/src/Math/Matrix.hpp +++ b/src/Math/Matrix.hpp @@ -15,7 +15,7 @@ public: std::fill(elements, elements + R * C, scalar); }; - template<typename ...Args> + template<typename ...Args, typename std::enable_if<sizeof...(Args) == R * C, int>::type = 0> Matrix<R, C, T>(Args... args): elements{ args... } {}; Matrix<R, C, T>(T values[R * C]) { |
