[odb-users] bi-directional weak_ptr session destructor access violation

Boris Kolpackov boris at codesynthesis.com
Mon Aug 31 09:33:45 EDT 2015


Hi Markus,

Markus Klemm <markus at markusklemm.net> writes:

> Is it possible that ODB assumes that, in a bidirectional 1:n 
> relationship, the weak_ptr is the datamember with the inverse
> pragma?

No, ODB doesn't make any such assumptions.

As a first step, make sure that all the objects that are involved
in your relationship use shared_ptr as their object pointer. You
class file doesn't appear to be.

Boris



More information about the odb-users mailing list