[odb-users] bi-directional weak_ptr session destructor access
violation
Markus Klemm
markus at markusklemm.net
Mon Aug 31 09:42:57 EDT 2015
Yes, after addig the pointer pragma to the file class it worked. Thank you very much again!
Mit freundlichen Grüßen/ Best regards
Markus Klemm
> Am 31.08.2015 um 15:33 schrieb Boris Kolpackov <boris at codesynthesis.com>:
>
> 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