Skip to content

Commit

Permalink
Merge pull request #681 from fnc12/revert-680-patch-1
Browse files Browse the repository at this point in the history
Revert "Use constant references when iterating over ranges in replace_range"
  • Loading branch information
fnc12 authored Mar 15, 2021
2 parents 78d8fa7 + f7b7c9a commit 1ee0a86
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) {
const auto &o = *it;
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 1ee0a86

Please sign in to comment.