Skip to content

Commit 327b385

Browse files
committed
Fixed build error on VS2015
1 parent ef08fda commit 327b385

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/xtensor-blas/xblas_utils.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,11 @@ namespace xt
195195
***********************************/
196196

197197
template <class T>
198-
constexpr void assert_nd_square(const xexpression<T>& t) {
198+
#if !defined(_MSC_VER) || _MSC_VER >= 1910
199+
constexpr
200+
#endif
201+
void assert_nd_square(const xexpression<T>& t)
202+
{
199203
auto& dt = t.derived_cast();
200204
if (dt.shape()[dt.dimension() - 1] != dt.shape()[dt.dimension() - 2])
201205
{

0 commit comments

Comments
 (0)