diff options
| author | Mel <einebeere@gmail.com> | 2023-06-12 17:09:55 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-06-12 17:14:03 +0200 |
| commit | d0de60dc33df75fbcacb53a09568b14d0fd48cb9 (patch) | |
| tree | 7aefdbb81f114552881834bd5b0d842bc2bdb691 /src/Math/Matrix.hpp | |
| parent | 23b0bc4d1ddc9fad3c32e8257497ddd13ac6a155 (diff) | |
| download | meowcraft-d0de60dc33df75fbcacb53a09568b14d0fd48cb9.tar.zst meowcraft-d0de60dc33df75fbcacb53a09568b14d0fd48cb9.zip | |
Multithreaded world generation with Perlin
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]) { |
