From f51188c8ef5fd8d1059672876e536d79a3184170 Mon Sep 17 00:00:00 2001 From: stevenwdv Date: Mon, 2 Sep 2024 11:29:51 +0200 Subject: [PATCH 1/2] Fix `mapped_view` with condition Closes #1346 --- 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 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(); From 2d089d4ce16f243d16c6ec0e6224816f9133d2fa Mon Sep 17 00:00:00 2001 From: stevenwdv Date: Tue, 3 Sep 2024 19:46:29 +0200 Subject: [PATCH 2/2] Also update mapped_view.h for #1346 --- dev/mapped_view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();