From 6421b61a0877e2e76df34c39f37ac388170ce479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Tue, 6 Apr 2021 17:29:31 +0200 Subject: [PATCH] Fix return type value for 'operator[] const' in SubView's --- src/mesh/SubItemValuePerItem.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/SubItemValuePerItem.hpp b/src/mesh/SubItemValuePerItem.hpp index aac434ffd..63bff8a35 100644 --- a/src/mesh/SubItemValuePerItem.hpp +++ b/src/mesh/SubItemValuePerItem.hpp @@ -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"); -- GitLab