Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Fixed conceptual requirement for pick_table()
Browse files Browse the repository at this point in the history
  • Loading branch information
trueqbit committed Feb 15, 2023
1 parent 30d9824 commit 0eb8acf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/storage_lookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ namespace sqlite_orm {
*
* Note: This function requires Lookup to be mapped, otherwise it is removed from the overload resolution set.
*/
template<class Lookup, class DBOs, satisfies<is_db_objects, DBOs> = true>
template<class Lookup, class DBOs, satisfies<is_mapped, DBOs, Lookup> = true>
auto& pick_table(DBOs& dbObjects) {
using table_type = storage_pick_table_t<Lookup, DBOs>;
return std::get<table_type>(dbObjects);
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 @@ -9598,7 +9598,7 @@ namespace sqlite_orm {
*
* Note: This function requires Lookup to be mapped, otherwise it is removed from the overload resolution set.
*/
template<class Lookup, class DBOs, satisfies<is_db_objects, DBOs> = true>
template<class Lookup, class DBOs, satisfies<is_mapped, DBOs, Lookup> = true>
auto& pick_table(DBOs& dbObjects) {
using table_type = storage_pick_table_t<Lookup, DBOs>;
return std::get<table_type>(dbObjects);
Expand Down

0 comments on commit 0eb8acf

Please sign in to comment.