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

Fix return type value for 'operator[] const' in SubView's

parent a44d85ee
No related branches found
No related tags found
1 merge request!84Add SubArray class
...@@ -61,7 +61,7 @@ class SubItemValuePerItem ...@@ -61,7 +61,7 @@ class SubItemValuePerItem
public: public:
template <typename IndexType> template <typename IndexType>
PUGS_INLINE const DataType& PUGS_FORCEINLINE DataType&
operator[](IndexType i) const noexcept(NO_ASSERT) operator[](IndexType i) const noexcept(NO_ASSERT)
{ {
static_assert(std::is_integral_v<IndexType>, "SubView is indexed by integral values"); static_assert(std::is_integral_v<IndexType>, "SubView is indexed by integral values");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment