How to define a static constexpr matrix in c++14?
问题 I am currently using C++14. I would like to define a Matrix class which I can use for defining runtime matrices, but also constexpr matrices. I also would like to define static constexpr matrices based on such a class. I consider this as a starting point for the Matrix class. Then I would like to write something as: static constexpr Matrix<double,2,2> staticmat{0.1,0.2,0.3,0.4}; so that staticmat is constexpr and unique, being static. However, in order to initialise this, I would need a