[odb-users] shared pointers to abstract classes

first last armz4pxq at gmail.com
Wed Jul 23 21:12:30 EDT 2014

Hi Boris,

I have a very basic question.

How can I make persistent a class that has as a member a pointer to an
abstract class.

Something like:

class person {

... abstract


class operator : public person {

... real


class programmer : public person {

... real


class employer {

    shared_ptr<person> employee;  // this can be either an operator or a




More information about the odb-users mailing list