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
This commit is part of merge request !84. Comments created here will be created in the context of that merge request.
......@@ -61,7 +61,7 @@ class SubItemValuePerItem
public:
template <typename IndexType>
PUGS_INLINE const DataType&
PUGS_FORCEINLINE DataType&
operator[](IndexType i) const noexcept(NO_ASSERT)
{
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