view/group: cleanup

This commit is contained in:
Michele Caini
2022-11-14 17:13:38 +01:00
parent 9081c185da
commit fc68c1b290
2 changed files with 3 additions and 3 deletions

View File

@@ -186,7 +186,7 @@ public:
*/
template<std::size_t Index>
[[nodiscard]] decltype(auto) storage() const noexcept {
static constexpr auto offset = sizeof...(Get);
constexpr auto offset = sizeof...(Get);
if constexpr(Index < offset) {
return *std::get<Index>(pools);
@@ -584,7 +584,7 @@ public:
*/
template<std::size_t Index>
[[nodiscard]] decltype(auto) storage() const noexcept {
static constexpr auto offset = sizeof...(Owned) + sizeof...(Get);
constexpr auto offset = sizeof...(Owned) + sizeof...(Get);
if constexpr(Index < offset) {
return *std::get<Index>(pools);

View File

@@ -330,7 +330,7 @@ public:
*/
template<std::size_t Index>
[[nodiscard]] decltype(auto) storage() const noexcept {
static constexpr auto offset = sizeof...(Get);
constexpr auto offset = sizeof...(Get);
if constexpr(Index < offset) {
return *std::get<Index>(pools);