[Boost-bugs] [Boost C++ Libraries] #6825: [Heap] compile error : fibonacci_heap::s_handle_from_iterator

Subject: [Boost-bugs] [Boost C++ Libraries] #6825: [Heap] compile error : fibonacci_heap::s_handle_from_iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-24 06:08:08


#6825: [Heap] compile error : fibonacci_heap::s_handle_from_iterator
-------------------------------------------------------+--------------------
 Reporter: Akira Takahashi <faithandbrave@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.49.0
 Severity: Problem | Keywords:
-------------------------------------------------------+--------------------
 try code is follow (GCC 4.7.0, -std=c++11):
 {{{
 #include <iostream>
 #include <algorithm>
 #include <boost/heap/fibonacci_heap.hpp>

 int main ()
 {
     boost::heap::fibonacci_heap<int> que;

     que.push(3);
     que.push(1);
     que.push(4);

     que.update(
         decltype(que)::s_handle_from_iterator(que.begin()),
         6);

     std::for_each(que.ordered_begin(), que.ordered_end(), [](int x) {
         std::cout << x << std::endl;
     });
 }
 }}}

 compile error:
 {{{
 /boost/heap/fibonacci_heap.hpp:608:52: error: 's_handle_from_iterator' is
 not a member of 'boost::heap::fibonacci_heap<int>::super_t {aka
 boost::heap::detail::make_fibonacci_heap_base<int,
 boost::parameter::aux::empty_arg_list>::type}'
 }}}

 s_handle_from_iterator() function is documented:
 http://www.boost.org/doc/libs/1_49_0/doc/html/boost/heap/fibonacci_heap.html#id346082-bb

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