[odb-users] Specifying "--profile boost" after "--default-pointer" resets the default pointer to boost::shared_ptr

Matthew Bowen mabowen at lexmark.com
Sun Nov 10 18:42:45 EST 2013


Boris,

Ah, sorry about that; I probably should have scanned the manual first! But
yes, I do believe it's somewhat unintuitive. Thanks very much for the
prompt reply!


On Sun, Nov 10, 2013 at 2:38 AM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> Hi Matthew,
>
> Matthew Bowen <mabowen at lexmark.com> writes:
>
> > I am currently using ODB's compiler version 2.3.0. I've found that, when
> > specifying parameters, if I specify "--profile boost" after specifying
> > "--default-pointer std::shared_ptr," the compiler will ignore my request
> to
> > set the default to std::shared_ptr, and use boost::shared_ptr instead.
> > However, if I specify the default after setting the profile to Boost, the
> > compiler will respect the default I set.
>
> Yes, this behavior is documented in Section 23.1, "Smart Pointers Library".
> Though I agree it can be a bit surprising and perhaps this wasn't such a
> good idea seeing that the C++11 (and std::shared_ptr) use is becoming
> more widespread. I've added a TODO item to change this for the next
> release.
>
> Boris
>


More information about the odb-users mailing list