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

Matthew Bowen mabowen at lexmark.com
Fri Nov 8 14:21:01 EST 2013


Hi!

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.

For example, using the following command results in ODB using
boost::shared_ptr by default (not intended):

odb --default-pointer std::shared_ptr --profile boost <input-files>

The following results in ODB using std::shared_ptr by default (as intended):

odb --profile boost --default-pointer std::shared_ptr <input-files>

Obviously not critical, because the workaround is simple, but I'm not sure
if this is intended behavior.

Thanks!
Matthew Bowen


More information about the odb-users mailing list