[odb-users] Compilation issue with gcc

Pierre-Olivier Rocher trynitron at gmail.com
Wed Jun 1 10:41:10 EDT 2016


I'm currently not able to compile my project on Debian 8.4 using gcc. The
first error is :

error: no matching function for call to ‘odb::database::erase(const int&)’

This code source compile nicely on Windows (VS 2015 update 2), all the odb
files are generated on Windows, with odb.exe.

It seems to be a cast issue between "const int&" and "const typename
odb::object_traits<T>::id_type&" but i'm currently not able to fix the

Any idea ?

Thanks in advance

More information about the odb-users mailing list