Skip to content
Snippets Groups Projects
Commit 0364b78a authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add noexcept(NO_ASSERT) to access operators

parent a6ea29dc
No related branches found
No related tags found
No related merge requests found
......@@ -160,14 +160,14 @@ class TinyVector
}
KOKKOS_INLINE_FUNCTION
constexpr T& operator[](const size_t& i)
constexpr T& operator[](const size_t& i) noexcept(NO_ASSERT)
{
Assert(i<N);
return m_values[i];
}
KOKKOS_INLINE_FUNCTION
constexpr const T& operator[](const size_t& i) const
constexpr const T& operator[](const size_t& i) const noexcept(NO_ASSERT)
{
Assert(i<N);
return m_values[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment