[odb-users] Re: 'unordered_set' is not a member of 'std'
Craig Burton
rccraigb at gmail.com
Wed Sep 16 20:27:09 EDT 2020
Quick followup: after reviewing the ODB documentation, I realized that
c++11 is the supported standard. I went back and rebuilt all libraries and
my own code using c++11 and I still encounter the same problem.
Craig
On Wed, Sep 16, 2020 at 11:09 AM Craig Burton <rccraigb at gmail.com> wrote:
> Hi,
>
> I'm attempting to use c++14, but have encountered the error below while
> invoking the odb compiler. I went back and recompiled all of the odb
> libraries (core, mysql and boost) using the c++14 standard, but it didn't
> matter. I surely must be doing something wrong. Any thoughts?
>
> Thank you,
> Craig
>
>
> /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 --at-once
> --input-name Depot -I/usr/include -I/usr/local/boost_1_62_0
> -I/usr/local/boost_1_62_0/boost/tr1/tr1 (bunch of include files here)
> In file included from /usr/local/include/odb/container-traits.hxx:217:0,
> from <standard-odb-epilogue>:9:
> /usr/local/include/odb/std-unordered-set-traits.hxx: At global scope:
> /usr/local/include/odb/std-unordered-set-traits.hxx:18:34: error:
> ‘unordered_set’ is not a member of ‘std’
> class access::container_traits<std::unordered_set<V, H, P, A>>
> ^
> /usr/local/include/odb/std-unordered-set-traits.hxx:18:34: note: suggested
> alternatives:
> In file included from
> /usr/local/boost_1_62_0/boost/unordered/detail/set.hpp:6:0,
> from
> /usr/local/boost_1_62_0/boost/unordered/unordered_set.hpp:17,
> from /usr/local/boost_1_62_0/boost/unordered_set.hpp:17,
> from
> /usr/local/boost_1_62_0/boost/tr1/unordered_set.hpp:21,
> from
> /usr/local/boost_1_62_0/boost/tr1/tr1/unordered_set:28,
> from
> /usr/local/include/odb/std-unordered-set-traits.hxx:11,
> from /usr/local/include/odb/container-traits.hxx:217,
> from <standard-odb-epilogue>:9:
> /usr/local/boost_1_62_0/boost/unordered/unordered_set_fwd.hpp:27:15: note:
> ‘boost::unordered::unordered_set’
> class unordered_set;
> ^
> <end>
>
>
>
More information about the odb-users
mailing list