[Boost-bugs] [Boost C++ Libraries] #7821: Cannot user tuple in unordered_set

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