[odb-users] ODB requires x++11
Boris Kolpackov
boris at codesynthesis.com
Fri Jul 21 09:52:20 EDT 2023
Justin Armstrong <justinarmstrong at vectormagnetics.com> writes:
> I am using clang :
>
> clang --version
> Apple clang version 14.0.0 (clang-1400.0.29.202)
> Target: arm64-apple-darwin21.6.0
>
> The common runtime that I am including is from :
>
> https://www.codesynthesis.com/products/odb/download.xhtml
>
> Common Runtime Library
> libodb-2.4.0
Ok, I think I've finally figured out why we are not getting this error
even though we are testing with the same compiler and C++ standard:
while the 2.5.0 pre-release still provides the same std::auto_ptr
specialization in odb/pointer-traits.hxx, it is #ifdef'ed out if
using C++11 or later. Here is the relevant line:
https://git.codesynthesis.com/cgit/odb/libodb/tree/odb/pointer-traits.hxx#n163
Note that this is not the only place like this: I checked and basically
every mention of std::auto_ptr in libodb in 2.5.0 is made conditional
like this.
As a result, I think the easiest way to resolve this is to upgrade
to the 2.5.0 pre-release as described in:
https://codesynthesis.com/products/odb/doc/install-build2.xhtml
More information about the odb-users
mailing list