Skip to content

Commit

Permalink
Suppress cppcoreguidelines-avoid-const-or-ref-data-members in reversi…
Browse files Browse the repository at this point in the history
…ng_wrapper
  • Loading branch information
timangus committed Oct 27, 2023
1 parent 0a4c34e commit cff7a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/shared/utils/container.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ namespace u
return values;
}

template<typename T> struct reversing_wrapper { T& container; };
template<typename T> struct reversing_wrapper { T& container; }; // NOLINT cppcoreguidelines-avoid-const-or-ref-data-members
template<typename T> auto begin(reversing_wrapper<T> wrapper) { return std::rbegin(wrapper.container); }
template<typename T> auto end(reversing_wrapper<T> wrapper) { return std::rend(wrapper.container); }

Expand Down

0 comments on commit cff7a48

Please sign in to comment.