[odb-users] Pointer to a objects list.

Boris Kolpackov boris at codesynthesis.com
Thu Aug 13 09:56:12 EDT 2020

Xavier Monset <xavier.monset at gmail.com> writes:

> error: unable to map C++ type '::std::list<
> ::Consignes_Injection_Exterieure* >*' used in data member
> 'mesConsignesInjectionExterieure' to a MySQL database type
>  info: use '#pragma db type' to specify the database type
> How should I handle it ?

One way would be to use a smart pointer like std::unique_ptr
(or turn them into values). For pointers, see wrapper_traits.

More information about the odb-users mailing list