Opened 11 years ago

Closed 11 years ago

#6153 closed Bugs (fixed)

intrusive::unordered & c++0x = compilation errors

Reported by: Leo Yuriev <leo@…> Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: intrusive
Version: Boost 1.48.0 Severity: Regression
Keywords: c++0x intrusive unordered Cc:

Description

code: Just a example from http://www.boost.org/doc/libs/1_48_0/doc/html/intrusive/unordered_set_unordered_multiset.html

gcc 4.6.2 with -std=gnu++0x -Wno-deprecated-declarations

So, support for move-semantic was implemented in a "deep" (hashtable and friends), but not on a "top" in boost::intrusive::unordered.

... /sandbox/toolchain-4.6-ly/include/boost/intrusive/hashtable.hpp:227:65: error: no matching function for call to 'boost::intrusive::detail::bucket_traits_impl<boost::intrusive::detail::get_slist_impl<boost::intrusive::slist_node_traits<void*> >::type>::bucket_traits_impl(const boost::intrusive::detail::bucket_traits_impl<boost::intrusive::detail::get_slist_impl<boost::intrusive::slist_node_traits<void*> >::type>&)' /sandbox/toolchain-4.6-ly/include/boost/intrusive/hashtable.hpp:227:65: note: candidates are: /sandbox/toolchain-4.6-ly/include/boost/intrusive/detail/hashtable_node.hpp:96:4: note: boost::intrusive::detail::bucket_traits_impl<Slist>::bucket_traits_impl(boost::intrusive::detail::bucket_traits_impl<Slist>&&) [with Slist = boost::intrusive::detail::get_slist_impl<boost::intrusive::slist_node_traits<void*> >::type, boost::intrusive::detail::bucket_traits_impl<Slist> = boost::intrusive::detail::bucket_traits_impl<boost::intrusive::detail::get_slist_impl<boost::intrusive::slist_node_traits<void*> >::type>] /sandbox/toolchain-4.6-ly/include/boost/intrusive/detail/hashtable_node.hpp:96:4: note: no known conversion for argument 1 from 'const boost::intrusive::detail::bucket_traits_impl<boost::intrusive::detail::get_slist_impl<boost::intrusive::slist_node_traits<void*> >::type>' to 'boost::intrusive::detail::bucket_traits_impl<boost::intrusive::detail::get_slist_impl<boost::intrusive::slist_node_traits<void*> >::type>&&' ...

Attachments (2)

boost-intrusive-error.txt (20.6 KB ) - added by Leo Yuriev <leo@…> 11 years ago.
gcc error output
ut_boost.cpp (2.6 KB ) - added by Leo Yuriev <leo@…> 11 years ago.
code= just a example from doc/html/intrusive/unordered_set_unordered_multiset.html

Download all attachments as: .zip

Change History (4)

by Leo Yuriev <leo@…>, 11 years ago

Attachment: boost-intrusive-error.txt added

gcc error output

by Leo Yuriev <leo@…>, 11 years ago

Attachment: ut_boost.cpp added

code= just a example from doc/html/intrusive/unordered_set_unordered_multiset.html

comment:1 by Leo Yuriev <leo@…>, 11 years ago

1.47.0 - all ok

comment:2 by Ion Gaztañaga, 11 years ago

Resolution: fixed
Status: newclosed

Fixed at trunk. Code tested in MingW with gcc 4.6.1

Note: See TracTickets for help on using tickets.