[odb-users] Multiple pointer types in a single object

Szumowski, Thomas thomas.szumowski at lmco.com
Tue Oct 4 12:06:07 EDT 2011

Suppose I have a class that requires relationships to two different objects. One relationship requires weak_ptr, and one requires shared_ptr. Is this possible? We noticed one can assign the pointer type at the object level, ("#pragma db object pointer"), but what if we want multiple pointer types in a single object?

e.g (for example purpose only)

class employee {
shared_ptr<employer> e;
weak_ptr<project> p;

Is this possible?

(Please reply-all to include those CC'd)

Thank you.


More information about the odb-users mailing list