[Boost-bugs] [Boost C++ Libraries] #10771: remove_if is broken for slist

Subject: [Boost-bugs] [Boost C++ Libraries] #10771: remove_if is broken for slist
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-08 16:14:44


#10771: remove_if is broken for slist
------------------------------+------------------------
 Reporter: Georgy | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
------------------------------+------------------------
 the following smaple produce a compilation error in msvs 2013 upd 3
 {{{
 #!cpp
 #include <boost/container/slist.hpp>

 void foo()
 {
     boost::container::slist<int> bar;
     bar.remove_if([](const int& p) { return p == 0; });
 }
 }}}

 error C2247:
 'boost::intrusive::detail::key_nodeptr_comp<Pred,boost::intrusive::bhtraits<T,boost::intrusive::slist_node_traits<void
 *>,normal_link,boost::intrusive::default_tag,2>>::operator ()' not
 accessible because
 'boost::intrusive::detail::key_nodeptr_comp<Pred,boost::intrusive::bhtraits<T,boost::intrusive::slist_node_traits<void
 *>,normal_link,boost::intrusive::default_tag,2>>' uses 'private' to
 inherit from
 'boost::intrusive::detail::ebo_functor_holder<KeyValueCompare>'

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10771>
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:17 UTC