Skip to content

Commit

Permalink
Merge pull request #680 from andrei-datcu/patch-1
Browse files Browse the repository at this point in the history
Use constant references when iterating over ranges in replace_range
  • Loading branch information
fnc12 authored Mar 15, 2021
2 parents 482c6dc + c4c67d2 commit 78d8fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sqlite_orm/sqlite_orm.h
Original file line number Diff line number Diff line change
Expand Up @@ -12358,7 +12358,7 @@ namespace sqlite_orm {
auto stmt = statement.stmt;
sqlite3_reset(stmt);
for(auto it = statement.t.range.first; it != statement.t.range.second; ++it) {
auto &o = *it;
const auto &o = *it;
tImpl.table.for_each_column([&o, &index, &stmt, db](auto &c) {
using column_type = typename std::decay<decltype(c)>::type;
using field_type = typename column_type::field_type;
Expand Down

0 comments on commit 78d8fa7

Please sign in to comment.