Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
vittorioromeo committed Mar 20, 2023
1 parent 1dc9cdc commit e64e23b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dev/tuple_helper/tuple_iteration.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ namespace sqlite_orm {
template<bool reversed = false, class Tpl, size_t... Idx, class L>
void iterate_tuple(const Tpl& tpl, std::index_sequence<Idx...>, L&& lambda) {
if constexpr(reversed) {
// nifty fold expression trick: make use of guaranteed right-to-left evaluation order when folding over operator=
int sink;
((lambda(std::get<Idx>(tpl)), sink) = ... = 0);
} else {
Expand Down

0 comments on commit e64e23b

Please sign in to comment.