Subject: [Boost-bugs] [Boost C++ Libraries] #7821: Cannot user tuple in unordered_set
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-21 18:58:40
#7821: Cannot user tuple in unordered_set
---------------------------------------+------------------------------------
Reporter: ilja.honkonen@⦠| Owner: danieljames
Type: Bugs | Status: new
Milestone: To Be Determined | Component: unordered
Version: Boost 1.52.0 | Severity: Problem
Keywords: |
---------------------------------------+------------------------------------
Compiling this program:
#include "boost/tuple/tuple.hpp"
#include "boost/unordered_set.hpp"
int main()
{
boost::unordered_set<boost::tuple::tuple<char> > tuples;
return 0;
}
using g++ (GCC) 4.8.0 20121216 (experimental) and boost 1.52.0 fails with
this error:
In file included from /usr/include/boost/unordered/detail/table.hpp:10:0,
from
/usr/include/boost/unordered/detail/equivalent.hpp:14,
from /usr/include/boost/unordered/unordered_set.hpp:17,
from /usr/include/boost/unordered_set.hpp:16,
from boost_tuple_hash.cpp:2:
/usr/include/boost/unordered/detail/buckets.hpp: Jäsenfunktio âvoid
boost::unordered::detail::node_constructor<NodeAlloc>::construct_with_value(const
Args&)â:
/usr/include/boost/unordered/detail/buckets.hpp:338:13: virhe:
âconstruct_value_implâ is not a member of âboost::unordered::detailâ
boost::unordered::detail::construct_value_impl(
^
/usr/include/boost/unordered/detail/buckets.hpp: Jäsenfunktio âvoid
boost::unordered::detail::node_constructor<NodeAlloc>::construct_with_value2(const
A0&)â:
/usr/include/boost/unordered/detail/buckets.hpp:347:13: virhe:
âconstruct_value_implâ is not a member of âboost::unordered::detailâ
boost::unordered::detail::construct_value_impl(
^
/usr/include/boost/unordered/detail/buckets.hpp: In destructor
âboost::unordered::detail::node_constructor<NodeAlloc>::~node_constructor()â:
/usr/include/boost/unordered/detail/buckets.hpp:377:17: virhe:
âdestroy_value_implâ is not a member of âboost::unordered::detailâ
boost::unordered::detail::destroy_value_impl(alloc_,
^
/usr/include/boost/unordered/detail/buckets.hpp: Jäsenfunktio âvoid
boost::unordered::detail::node_constructor<NodeAlloc>::construct()â:
/usr/include/boost/unordered/detail/buckets.hpp:409:17: virhe:
âdestroy_value_implâ is not a member of âboost::unordered::detailâ
boost::unordered::detail::destroy_value_impl(alloc_,
^
/usr/include/boost/unordered/detail/buckets.hpp: In destructor
âboost::unordered::detail::node_holder<NodeAlloc>::~node_holder()â:
/usr/include/boost/unordered/detail/buckets.hpp:526:13: virhe:
âdestroy_value_implâ is not a member of âboost::unordered::detailâ
boost::unordered::detail::destroy_value_impl(this->alloc_,
^
/usr/include/boost/unordered/detail/buckets.hpp: At global scope:
/usr/include/boost/unordered/detail/buckets.hpp:775:12: virhe: âstruct
boost::unordered::detail::please_ignore_this_overloadâ uudelleenmääritelty
struct please_ignore_this_overload {
^
In file included from
/usr/include/boost/unordered/detail/buckets.hpp:15:0,
from /usr/include/boost/unordered/detail/table.hpp:10,
from
/usr/include/boost/unordered/detail/equivalent.hpp:14,
from /usr/include/boost/unordered/unordered_set.hpp:17,
from /usr/include/boost/unordered_set.hpp:16,
from boost_tuple_hash.cpp:2:
/usr/include/boost/unordered/detail/allocate.hpp:177:12: virhe: previous
definition of âstruct
boost::unordered::detail::please_ignore_this_overloadâ
struct please_ignore_this_overload {
^
In file included from /usr/include/boost/unordered/detail/table.hpp:10:0,
from
/usr/include/boost/unordered/detail/equivalent.hpp:14,
from /usr/include/boost/unordered/unordered_set.hpp:17,
from /usr/include/boost/unordered_set.hpp:16,
from boost_tuple_hash.cpp:2:
/usr/include/boost/unordered/detail/buckets.hpp:780:12: virhe: âstruct
boost::unordered::detail::rv_ref_impl<T>â uudelleenmääritelty
struct rv_ref_impl {
^
In file included from
/usr/include/boost/unordered/detail/buckets.hpp:15:0,
from /usr/include/boost/unordered/detail/table.hpp:10,
from
/usr/include/boost/unordered/detail/equivalent.hpp:14,
from /usr/include/boost/unordered/unordered_set.hpp:17,
from /usr/include/boost/unordered_set.hpp:16,
from boost_tuple_hash.cpp:2:
/usr/include/boost/unordered/detail/allocate.hpp:182:12: virhe: previous
definition of âstruct boost::unordered::detail::rv_ref_impl<T>â
struct rv_ref_impl {
^
In file included from /usr/include/boost/unordered/detail/table.hpp:10:0,
from
/usr/include/boost/unordered/detail/equivalent.hpp:14,
from /usr/include/boost/unordered/unordered_set.hpp:17,
from /usr/include/boost/unordered_set.hpp:16,
from boost_tuple_hash.cpp:2:
/usr/include/boost/unordered/detail/buckets.hpp:785:12: virhe: âstruct
boost::unordered::detail::rv_ref<T>â uudelleenmääritelty
struct rv_ref :
^
In file included from
/usr/include/boost/unordered/detail/buckets.hpp:15:0,
from /usr/include/boost/unordered/detail/table.hpp:10,
from
/usr/include/boost/unordered/detail/equivalent.hpp:14,
from /usr/include/boost/unordered/unordered_set.hpp:17,
from /usr/include/boost/unordered_set.hpp:16,
from boost_tuple_hash.cpp:2:
/usr/include/boost/unordered/detail/allocate.hpp:187:12: virhe: previous
definition of âstruct boost::unordered::detail::rv_ref<T>â
struct rv_ref :
^
In file included from
/usr/include/boost/unordered/detail/equivalent.hpp:14:0,
from /usr/include/boost/unordered/unordered_set.hpp:17,
from /usr/include/boost/unordered_set.hpp:16,
from boost_tuple_hash.cpp:2:
/usr/include/boost/unordered/detail/table.hpp: Jäsenfunktio âvoid
boost::unordered::detail::table<Types>::delete_node(boost::unordered::detail::table<Types>::c_iterator)â:
/usr/include/boost/unordered/detail/table.hpp:505:13: virhe:
âdestroy_value_implâ is not a member of âboost::unordered::detailâ
boost::unordered::detail::destroy_value_impl(node_alloc(),
^
boost_tuple_hash.cpp: Funktio âint main()â:
boost_tuple_hash.cpp:6:49: virhe: template argument 1 is invalid
boost::unordered_set<boost::tuple::tuple<char> > tuples;
^
boost_tuple_hash.cpp:6:49: virhe: template argument 2 is invalid
boost_tuple_hash.cpp:6:49: virhe: template argument 3 is invalid
boost_tuple_hash.cpp:6:49: virhe: template argument 4 is invalid
boost_tuple_hash.cpp:6:57: virhe: invalid type in declaration before â;â
token
boost::unordered_set<boost::tuple::tuple<char> > tuples;
^
boost_tuple_hash.cpp:6:51: varoitus: käyttämätön muuttuja âtuplesâ
[-Wunused-variable]
boost::unordered_set<boost::tuple::tuple<char> > tuples;
^
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7821> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC