[odb-users] Passing persistence object to smart pointer

Boris Kolpackov boris at codesynthesis.com
Thu Mar 3 07:25:59 EST 2011


Hi,

Bright Dadson <losintikfos at yahoo.co.uk> writes:

> I have compiled my person.h file successfully with --default-pointer 
> std::tr1::shared_ptr option.
> 
> Now when I attempt to build the project, I end up with below exception:

You will need to include the header declaring std::tr1::shared_ptr either
in person.h or in the generated code (using --hxx-prologue option). For
GCC this header is:

#include <tr1/memory>

Boris



More information about the odb-users mailing list