[odb-users] statement-cache.txx compiler error when using object loading views

Markus Klemm markus at markusklemm.net
Mon Sep 14 12:09:23 EDT 2015


My second an last mail for today;

Either I'm missing something essential about object loading views or I stumbled over a compile time bug of odb, in this case \libodb-mssql-2.4.0\odb\mssql\statement-cache.txx.
Given for a simple example (code below), I got this compiler error
'odb::mssql::object_statements<odb::access::object_traits<type>::object_type>' : class has no constructors	\libodb-mssql-2.4.0\odb\mssql\statement-cache.txx	36	
'static_cast' : cannot convert from 'odb::mssql::statements_base' to 'statements_type &' \libodb-mssql-2.4.0\odb\mssql\statement-cache.txx	33.

Code: https://gist.github.com/Superlokkus/ea4a28e197fea67cec4e
ODB-compile command I use: odb.exe -I <boost_path>\include -q -e -d mssql --profile boost --std c++11 <class.h>
I'm using MS MVC 2013

Regards

Markus Klemm



More information about the odb-users mailing list