@@ -377,7 +377,8 @@ namespace xt
377377 : base_type()
378378 {
379379 base_type::resize (xt::shape<shape_type>(t));
380- L == layout_type::row_major ? nested_copy (m_storage.begin (), t) : nested_copy (this ->template begin <layout_type::row_major>(), t);
380+ constexpr auto tmp = layout_type::row_major;
381+ L == tmp ? nested_copy (m_storage.begin (), t) : nested_copy (this ->template begin <tmp>(), t);
381382 }
382383
383384 /* *
@@ -389,7 +390,8 @@ namespace xt
389390 : base_type()
390391 {
391392 base_type::resize (xt::shape<shape_type>(t));
392- L == layout_type::row_major ? nested_copy (m_storage.begin (), t) : nested_copy (this ->template begin <layout_type::row_major>(), t);
393+ constexpr auto tmp = layout_type::row_major;
394+ L == tmp ? nested_copy (m_storage.begin (), t) : nested_copy (this ->template begin <tmp>(), t);
393395 }
394396
395397 /* *
@@ -401,7 +403,8 @@ namespace xt
401403 : base_type()
402404 {
403405 base_type::resize (xt::shape<shape_type>(t));
404- L == layout_type::row_major ? nested_copy (m_storage.begin (), t) : nested_copy (this ->template begin <layout_type::row_major>(), t);
406+ constexpr auto tmp = layout_type::row_major;
407+ L == tmp ? nested_copy (m_storage.begin (), t) : nested_copy (this ->template begin <tmp>(), t);
405408 }
406409
407410 /* *
@@ -413,7 +416,8 @@ namespace xt
413416 : base_type()
414417 {
415418 base_type::resize (xt::shape<shape_type>(t));
416- L == layout_type::row_major ? nested_copy (m_storage.begin (), t) : nested_copy (this ->template begin <layout_type::row_major>(), t);
419+ constexpr auto tmp = layout_type::row_major;
420+ L == tmp ? nested_copy (m_storage.begin (), t) : nested_copy (this ->template begin <tmp>(), t);
417421 }
418422
419423 /* *
@@ -425,7 +429,8 @@ namespace xt
425429 : base_type()
426430 {
427431 base_type::resize (xt::shape<shape_type>(t));
428- L == layout_type::row_major ? nested_copy (m_storage.begin (), t) : nested_copy (this ->template begin <layout_type::row_major>(), t);
432+ constexpr auto tmp = layout_type::row_major;
433+ L == tmp ? nested_copy (m_storage.begin (), t) : nested_copy (this ->template begin <tmp>(), t);
429434 }
430435 // @}
431436
0 commit comments