fnc12 / sqlite_orm

❤️ SQLite ORM light header only library for modern C++
GNU Affero General Public License v3.0
2.19k stars 305 forks source link

vs2017 build failed #1301

Closed godmaycrying closed 3 weeks ago

godmaycrying commented 1 month ago

sqlite_orm.h(10301): error C3536: 'res': cannot be used before it is initialized sqlite_orm.h(19794): note: see reference to function template instantiation 'decltype(auto) sqlite_orm::internal::empty_callable<std::integral_constant<bool,false>>(void)' being compiled sqlite_orm.h(19794): note: see reference to class template instantiation 'sqlite_orm::internal::statement_serializer<sqlite_orm::internal::replace_t,void>' being compiled sqlite_orm.h(10301): error C2440: 'return': cannot convert from 'int' to 'auto &' sqlite_orm.h(10302): error C3487: 'void': all return expressions must deduce to the same type: previously it was 'auto &' sqlite_orm.h(19794): error C3779: 'sqlite_orm::internal::empty_callable': a function that returns 'auto' cannot be used before it is defined sqlite_orm.h(10297): note: see declaration of 'sqlite_orm::internal::empty_callable' sqlite_orm.h(19794): note: This diagnostic occurred in the compiler generated function 'std::string sqlite_orm::internal::statement_serializer<sqlite_orm::internal::replace_t,void>::operator ()(const sqlite_orm::internal::replace_t &,const Ctx &) const'

trueqbit commented 1 month ago

@godmaycrying Do you have a suggestion on how to solve the compiler error?

And please, give a good error description when you open a ticket. Thank you.

trueqbit commented 3 weeks ago

Hi @godmaycrying, can we close this ticket?

godmaycrying commented 3 weeks ago

Hi @godmaycrying, can we close this ticket?

yes, thank you!