[odb-users] Defining one-to-many bidirectional relationship

david bowe dpbowe at hotmail.com
Fri Feb 10 11:51:33 EST 2017


Ok just saw in the docs that an option has to be added


$ odb -d pgsql --profile boost --generate-schema --generate-query database.hxx

________________________________
From: Boris Kolpackov <boris at codesynthesis.com>
Sent: 10 February 2017 15:45
To: david bowe
Cc: odb-users at codesynthesis.com
Subject: Re: [odb-users] Defining one-to-many bidirectional relationship

Hi David,

david bowe <dpbowe at hotmail.com> writes:

> database.hxx:111:46: error: unable to map C++ type
> '::__gnu_cxx::new_allocator< ::boost::weak_ptr< ::order > >::this_type'
> used in data member 'orders_' to a PostgreSQL database type

You are using Boost smart pointers. Have you enabled the Boost profile
(libodb-boost)?

Boris


More information about the odb-users mailing list