[odb-users] Instantation of odb::result<my_type> e.g. odb::query<my_type> fails

Boris Kolpackov boris at codesynthesis.com
Mon Aug 24 09:45:27 EDT 2015


Hi Markus,

Markus Klemm <markus at markusklemm.net> writes:

> Of course I odb-compiled the overview_record.h with `odb.exe --database 
> mssql overview_record.h` (otherwise there won't be an .hxx). But I get
> the following compiler errors by the line `db->query<overview_record>();`,
> although instantiating a default constructed result<overview_record> works:

I am pretty sure you are getting this error because you haven't
enabled query support when running the ODB compiler (-q option).

Boris



More information about the odb-users mailing list