diff --git a/core/src/Kokkos_View.hpp b/core/src/Kokkos_View.hpp index fe5d267f09..e576c8d42a 100644 --- a/core/src/Kokkos_View.hpp +++ b/core/src/Kokkos_View.hpp @@ -655,12 +655,6 @@ class View : public ViewTraits { map_type::Rank}; #endif - /** \brief rank() to be implemented - */ - // KOKKOS_INLINE_FUNCTION - // static - // constexpr unsigned rank() { return map_type::rank; } - template KOKKOS_INLINE_FUNCTION constexpr std::enable_if_t< std::is_integral::value, size_t> @@ -1699,14 +1693,10 @@ class View : public ViewTraits { } }; -/** \brief Temporary free function rank() - * until rank() is implemented - * in the View - */ template KOKKOS_INLINE_FUNCTION constexpr unsigned rank(const View& V) { - return V.rank; -} // Temporary until added to view + return V.rank(); +} namespace Impl {