[odb-users] 'lazy_weak_ptr' is not a member of 'odb'

Boris Kolpackov boris at codesynthesis.com
Fri Mar 24 05:58:01 EDT 2017


Hi Wolfgang,

Neuner Wolfgang <Wolfgang.Neuner at swarovski.com> writes:

> clib.hxx:40:14: error: 'lazy_weak_ptr' is not a member of 'odb'
>   std::vector<odb::lazy_weak_ptr<COdbClibRight> > m_ClibRights;
>
>
> odb.exe  -I C:\Data\Entwicklung\APIs\libodb-2.4.0\ --database mysql
> --generate-query --generate-schema clib.hxx

odb::lazy_weak_ptr corresponds to std::lazy_ptr which is only
available since C++11. So you need to run the ODB compiler in
the C++11 mode (--std c++11).

Boris



More information about the odb-users mailing list