how can I define the type result of "make_storage" function as a member variable of c++ class. #786
-
auto storage = make_storage("db.sqlite", for example: class myBusiness what is "xxxxx_type"? thank you very much !!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@fnc12
This gives me following error for "m_storage = initStorage(filePath);" error C2280: 'sqlite_orm::internal::storage_t<sqlite_orm::internal::table_t<User,sqlite_orm::internal::column_t<User,int,const int &(__cdecl User::* )(void) const,void (__cdecl User::* )(int),sqlite_orm::constraints::autoincrement_t,sqlite_orm::constraints::primary_key_t<>>>> &sqlite_orm::internal::storage_t<sqlite_orm::internal::table_t<User,sqlite_orm::internal::column_t<User,int,const int &(__cdecl User::* )(void) const,void (__cdecl User::* )(int),sqlite_orm::constraints::autoincrement_t,sqlite_orm::constraints::primary_key_t<>>>>::operator =(const sqlite_orm::internal::storage_t<sqlite_orm::internal::table_t<User,sqlite_orm::internal::column_t<User,int,const int &(__cdecl User::* )(void) const,void (__cdecl User::* )(int),sqlite_orm::constraints::autoincrement_t,sqlite_orm::constraints::primary_key_t<>>>> &)': attempting to reference a deleted function But even if it worked. I actually want something else. Only thing I came up with is this:
Would be great if you have a better solution. Maybe I am missing something obvious? |
Beta Was this translation helpful? Give feedback.
https://github.com/fnc12/sqlite_orm/wiki/FAQ