Skip to content

Commit

Permalink
Merge pull request #1347 from stevenwdv/1346-fix-mapped_view-condition
Browse files Browse the repository at this point in the history
Fix `mapped_view` with multiple arguments.
  • Loading branch information
trueqbit authored Sep 7, 2024
2 parents 2db5e0f + 2d089d4 commit a2b5fcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/mapped_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace sqlite_orm {
get_all_t<T, void, Args...> expression;

mapped_view(storage_type& storage, connection_ref conn, Args&&... args) :
storage(storage), connection(std::move(conn)), expression{std::forward<Args>(args)...} {}
storage(storage), connection(std::move(conn)), expression{{std::forward<Args>(args)...}} {}

size_t size() const {
return this->storage.template count<T>();
Expand Down
2 changes: 1 addition & 1 deletion include/sqlite_orm/sqlite_orm.h
Original file line number Diff line number Diff line change
Expand Up @@ -15685,7 +15685,7 @@ namespace sqlite_orm {
get_all_t<T, void, Args...> expression;

mapped_view(storage_type& storage, connection_ref conn, Args&&... args) :
storage(storage), connection(std::move(conn)), expression{std::forward<Args>(args)...} {}
storage(storage), connection(std::move(conn)), expression{{std::forward<Args>(args)...}} {}

size_t size() const {
return this->storage.template count<T>();
Expand Down

0 comments on commit a2b5fcd

Please sign in to comment.