[odb-users] Problem with many-to-many example

Boris Kolpackov boris at codesynthesis.com
Thu Jul 14 11:34:45 EDT 2016


Hi Tom,

Tom Stoffer <tomstoffer at gmail.com> writes:

> Would it not make sense to update the documentation in the relationships
> chapter to include the "
> 
> pragma db object pointer(std::shared_ptr)" for those classes so the code
> can compile?

There is always a balancing act between trying to be complete and not
confusing people. Plus, std::shared_ptr is not the only option, you
could also use tr1, boost, or Qt equivalents. I think the comment in
the code sent you in the right direction.

Boris



More information about the odb-users mailing list