[odb-users] inheritance and derived class transient members

Boris Kolpackov boris at codesynthesis.com
Mon Aug 24 09:59:40 EDT 2015


Hi,

MM <finjulhich at gmail.com> writes:

> struct Derived : public cloneable<Base,Derived> {

You derive via cloneable which is not a persistent class.
As a result, all its bases (persistent or not) are also
ignored. So you will need to add something like this to
make your example work:

using DerivedBase = cloneable<Base,Derived>;
#pragma db object(DerivedBase) abstract definition

Boris



More information about the odb-users mailing list