kokkos / mdarray

Other
10 stars 9 forks source link

Work-around for is_nothrow_copy_assignable_v with C++ < 17 #4

Closed mhoemmen closed 3 years ago

mhoemmen commented 3 years ago

Line 82 of const_wrapped_accessor_policy.hpp uses is_nothrow_copy_assignable_v<CP>. This was added in C++17. If we aim for mdarray to build with earlier versions of C++, we could work around by using is_nothrow_copy_assignable<CP>::value.

Thanks to Piotr Luszczek for pointing this out!

amklinv-nnl commented 3 years ago

I'll work on this tomorrow.