From f7b7c9aa605a1af92386a71f42de3a5c9740bd1c Mon Sep 17 00:00:00 2001 From: Yevgeniy Zakharov Date: Mon, 15 Mar 2021 20:15:31 +0600 Subject: [PATCH] Revert "Use constant references when iterating over ranges in replace_range" --- include/sqlite_orm/sqlite_orm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sqlite_orm/sqlite_orm.h b/include/sqlite_orm/sqlite_orm.h index 45c43a32b..22c493422 100644 --- a/include/sqlite_orm/sqlite_orm.h +++ b/include/sqlite_orm/sqlite_orm.h @@ -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::type; using field_type = typename column_type::field_type;