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

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7821: Cannot user tuple in unordered_set
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-22 08:36:51


#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
Resolution: | Keywords:
----------------------------------------+-----------------------------------

Comment (by anonymous):

 If I use boost::unordered_set < boost::tuple<char> > tuples;
 the difference to the error above is that only the last 13 lines are
 removed:

 --- error 2012-12-21 20:52:15.000000000 +0200
 +++ error2 2012-12-22 10:31:16.000000000 +0200
 @@ -78,16 +78,3 @@
  /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;
 - ^



 I get almost the same error with gcc-4.7.2, with 4.6.1 I get for your
 version of the program:



 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”
 /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”
 /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”
 /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”
 /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”
 /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
 /usr/include/boost/unordered/detail/allocate.hpp:177:12: virhe: previous
 definition of ”struct
 boost::unordered::detail::please_ignore_this_overload”
 /usr/include/boost/unordered/detail/buckets.hpp:780:12: virhe: ”struct
 boost::unordered::detail::rv_ref_impl<T>” uudelleenmääritelty
 /usr/include/boost/unordered/detail/allocate.hpp:182:12: virhe: previous
 definition of ”struct boost::unordered::detail::rv_ref_impl<T>”
 /usr/include/boost/unordered/detail/buckets.hpp:785:12: virhe: ”struct
 boost::unordered::detail::rv_ref<T>” uudelleenmääritelty
 /usr/include/boost/unordered/detail/allocate.hpp:187:12: virhe: previous
 definition of ”struct boost::unordered::detail::rv_ref<T>”
 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”

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7821#comment:2>
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