[odb-users] 'unordered_set' is not a member of 'std'

Boris Kolpackov boris at codesynthesis.com
Thu Sep 17 07:55:10 EDT 2020

Craig Burton <rccraigb at gmail.com> writes:

> /usr/local/odb-2.4.0/bin/odb --std c++14  --database mysql
> --generate-schema --generate-query --profile boost/date-time
> --generate-session --default-pointer std::tr1::shared_ptr

My guess would be there is some interference from Boost TR1 (that
whole TR1 support injection is quite hacky). Seeing that you are
using C++14, I would suggest using --default-pointer std::shared_ptr.
I would also suggest upgrading[1] to the latest 2.5.0 pre-release
since we've cleaned up some of that TR1 stuff since 2.4.0.

[1] https://codesynthesis.com/products/odb/doc/install-build2.xhtml

More information about the odb-users mailing list