2 // { dg-do link { target c++14 } }
5 constexpr bool IsMatrix = false;
7 template<typename TElem>
10 template <typename TElem>
11 constexpr bool IsMatrix<Matrix<TElem>> = true;
13 template<typename TNestVec>
14 class RowVecExpMatrix;
16 template <typename TNestVec>
17 constexpr bool IsMatrix<RowVecExpMatrix<TNestVec>> = true;
22 static_assert (IsMatrix<RowVecExpMatrix<Matrix<int>>>, "Matrix check error");
23 static_assert (IsMatrix<Matrix<int>>, "Input type is not a matrix");