Modify

Ticket #6153 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: Leo Yuriev <leo@…> Owned by: igaztanaga
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

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

Change History

Changed 2 years ago by Leo Yuriev <leo@…>

gcc error output

Changed 2 years ago by Leo Yuriev <leo@…>

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

comment:1 Changed 2 years ago by Leo Yuriev <leo@…>

1.47.0 - all ok

comment:2 Changed 2 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed

Fixed at trunk. Code tested in MingW with gcc 4.6.1

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.