Fwd: [odb-users] Error when trying to use odb compiler on custom class

Rafal Grasman rjg1094 at gmail.com
Tue May 14 21:09:49 EDT 2013


Sorr, fogot to CC, I'm new to mailing lists :$

Response:

Wow, so simple! Thank you really much, saved my day :D


Ah, it works for the ODB compiler but now Visual Studio is complaining on
the generated header ( http://ideone.com/dcWoJw ) :(

1>------ Build started: Project: Exe24++, Configuration: Release Win32
------
1>  pch.cpp
1>  Compiling precompiled header...
1>C:\Users\Rafal\Documents\Visual Studio
2012\Projects\Exe24++\classes/user-odb.hxx(415): error C2027: use of
undefined type 'odb::access::composite_value_traits<T,DB>'
1>          with
1>          [
1>
 T=odb::access::object_traits_impl<user,id_mysql>::bans_traits::value_type,
1>              DB=id_mysql
1>          ]
1>  ...done
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


More information about the odb-users mailing list