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

Boris Kolpackov boris at codesynthesis.com
Sun Nov 10 02:38:27 EST 2013


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