Modify

Opened 6 years ago

Closed 6 years ago

#6153 closed Bugs (fixed)

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 (2)

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

Download all attachments as: .zip

Change History (4)

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

gcc error output

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

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

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

1.47.0 - all ok

comment:2 Changed 6 years ago by igaztanaga

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

Fixed at trunk. Code tested in MingW with gcc 4.6.1

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain igaztanaga.
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.