diff --git a/core/src/Kokkos_View.hpp b/core/src/Kokkos_View.hpp index 7563a820a4..fb03c10e48 100644 --- a/core/src/Kokkos_View.hpp +++ b/core/src/Kokkos_View.hpp @@ -494,17 +494,11 @@ constexpr bool is_assignable(const Kokkos::View& dst, namespace Kokkos { -namespace { +inline constexpr Kokkos::ALL_t ALL{}; -constexpr Kokkos::ALL_t ALL = Kokkos::ALL_t(); +inline constexpr Kokkos::Impl::WithoutInitializing_t WithoutInitializing{}; -constexpr Kokkos::Impl::WithoutInitializing_t WithoutInitializing = - Kokkos::Impl::WithoutInitializing_t(); - -constexpr Kokkos::Impl::AllowPadding_t AllowPadding = - Kokkos::Impl::AllowPadding_t(); - -} // namespace +inline constexpr Kokkos::Impl::AllowPadding_t AllowPadding{}; /** \brief Create View allocation parameter bundle from argument list. *