[odb-users] Compilation issue with gcc

Boris Kolpackov boris at codesynthesis.com
Thu Jun 2 08:10:06 EDT 2016


Hi,

Pierre-Olivier Rocher <trynitron at gmail.com> writes:

> error: no matching function for call to ‘odb::database::erase(const int&)’
> m_database->erase<T>(fm_id);
>
> [...]
>
> 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.

Show us the definition of your objects, particularly the object id data
member as well as the code where you get the error. Without this info
we can only guess and speculate.

Boris



More information about the odb-users mailing list