[odb-users] Persisting class instantiated from a template

Boris Kolpackov boris at codesynthesis.com
Wed Mar 22 12:39:17 EDT 2017


Hi Balázs,

> #pragma db value(ResultFloatSeven) definition
>
> [...]
>
> ResultFloatSeven S(Values, Id);
>
> [...]
>
> db->persist(S);

You cannot persist a value directly, only as part of an object. Please
read the documentation.

Boris



More information about the odb-users mailing list