[odb-users] Compilation issue with gcc

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


Hi,

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&)’
m_database->erase<T>(fm_id);

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
issue.

Any idea ?

Thanks in advance
Tryniton


More information about the odb-users mailing list