diff --git a/dev/mapped_view.h b/dev/mapped_view.h index b2b61543..45f90c1c 100644 --- a/dev/mapped_view.h +++ b/dev/mapped_view.h @@ -37,7 +37,7 @@ namespace sqlite_orm { get_all_t expression; mapped_view(storage_type& storage, connection_ref conn, Args&&... args) : - storage(storage), connection(std::move(conn)), expression{std::forward(args)...} {} + storage(storage), connection(std::move(conn)), expression{{std::forward(args)...}} {} size_t size() const { return this->storage.template count(); diff --git a/include/sqlite_orm/sqlite_orm.h b/include/sqlite_orm/sqlite_orm.h index a710a5cc..7e18b652 100644 --- a/include/sqlite_orm/sqlite_orm.h +++ b/include/sqlite_orm/sqlite_orm.h @@ -15685,7 +15685,7 @@ namespace sqlite_orm { get_all_t expression; mapped_view(storage_type& storage, connection_ref conn, Args&&... args) : - storage(storage), connection(std::move(conn)), expression{std::forward(args)...} {} + storage(storage), connection(std::move(conn)), expression{{std::forward(args)...}} {} size_t size() const { return this->storage.template count();