[odb-users] ODB requires x++11

Boris Kolpackov boris at codesynthesis.com
Wed Jul 19 11:13:35 EDT 2023


Justin Armstrong <justinarmstrong at vectormagnetics.com> writes:

> I meant auto_ptr. In odb/pointer-traits.hxx line 165 I get an error
> when compiling with -std=c++17. So the issue I’m having is in the
> supporting code not the odb generated code.
> 
> pointer-traits.hxx
> 
>   // Specialization for std::auto_ptr.
>   //
>   template <typename T>
>   class pointer_traits< std::auto_ptr<T> > // line 165

Hm, interesting, maybe we should exclude this specialization for
later C++ versions.

The strange thing is that we don't have any issues with it even
though we are compiling with up to C++23 using pretty much every
compiler (GCC, Clang, MSVC). Can you share the compiler/version
as well as the exact command line that you are using to compile
your code? There must be something like -pedantic that causes
this.



More information about the odb-users mailing list