You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BLD: Force defining the mdspan parenthesis operator even with C++ >= 23. (#22588)
This allows to keep the same code, independently of the compiler C++
dialect being used. The default behavior of kokkos mdspan is the
following:
- if __cpp_multidimensional_subscript is defined (ie C++ >= 23), then
enable by default the square bracket operator to access elements, and
disable by default the parenthesis operator.
- otherwise (C++ < 23), disable the square bracket operator which
cannot work, and replace it by the parenthesis operator instead.
The current xsf code always uses the parenthesis operator. To avoid
having to always write the two possibilities, force the kokkos mdspan
implementation to always define the parenthesis operator for now.
Signed-off-by: Romain Geissler <[email protected]>
0 commit comments