Skip to content

Commit e64e23b

Browse files
committed
Apply review suggestions
1 parent 1dc9cdc commit e64e23b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dev/tuple_helper/tuple_iteration.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ namespace sqlite_orm {
3333
template<bool reversed = false, class Tpl, size_t... Idx, class L>
3434
void iterate_tuple(const Tpl& tpl, std::index_sequence<Idx...>, L&& lambda) {
3535
if constexpr(reversed) {
36+
// nifty fold expression trick: make use of guaranteed right-to-left evaluation order when folding over operator=
3637
int sink;
3738
((lambda(std::get<Idx>(tpl)), sink) = ... = 0);
3839
} else {

0 commit comments

Comments
 (0)