diff options
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/simple-mat.hpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/compat/simple-mat.hpp b/compat/simple-mat.hpp index b7b58d42..d499ee36 100644 --- a/compat/simple-mat.hpp +++ b/compat/simple-mat.hpp @@ -236,7 +236,7 @@ public:                  data[j][i] = num(0);      } -    Mat(const num* mem) +    constexpr Mat(const num* mem)      {          for (int j = 0; j < H; j++)              for (int i = 0; i < W; i++) @@ -250,7 +250,7 @@ public:      // not needed merely for matrix algebra -sh 20141030      template<int H_ = H> -    static std::enable_if_t<H == W, Mat<num, H_, H_>> eye() +    static constexpr std::enable_if_t<H == W, Mat<num, H_, H_>> eye()      {          static_assert(H == H_); | 
