Opened 8 years ago

Last modified 8 years ago

#10775 new Feature Requests

Add a boost::priority_queue class conforming to C++11

Reported by: viboes Owned by: timblechmann
Milestone: To Be Determined Component: heap
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

Boost.Heap provides already a boost::heaps::priority_queue class. However it doesn't conforms to C++11.

I suggest to add on in another namespace that conforms to C++11.

Change History (5)

comment:1 by timblechmann, 8 years ago

hmm, in what way doesn't it confirm to c++11?

comment:2 by viboes, 8 years ago

The template parameters?

comment:3 by timblechmann, 8 years ago

well, the idea of this class it not to re-implement a c++11-style priority-queue, but to provide a boost.heap-style interface for the stl heap functions. what you are looking for is a bit outside the scope of this library.

comment:4 by viboes, 8 years ago

You have already the implementation, all you need is to add the wrapper. Is this too much?

comment:5 by timblechmann, 8 years ago

it is not really a question of work, but it is more about consistency.

  • priority_queue is already a wrapper for stl's heap functions.
  • going back from keyword arguments to positional arguments, how do you suggest to wrap boost::heap::stable<>?
Note: See TracTickets for help on using tickets.