Ticket #12873: test.cpp

File test.cpp, 393 bytes (added by Bart van Merrienboer <bart.vanmerrienboer@…>, 6 years ago)

trigger no matching constructor compilation error in boost.heap

Line 
1#include <boost/heap/d_ary_heap.hpp>
2
3template<typename T>
4struct Foo {
5 typename boost::heap::d_ary_heap<T, boost::heap::arity<2>, boost::heap::mutable_<true>>::ordered_iterator it;
6 Foo() : it() {}
7};
8
9int main() {
10 auto heap = boost::heap::d_ary_heap<int, boost::heap::arity<2>, boost::heap::mutable_<true>>();
11 heap.push(1);
12 auto foo = Foo<int>();
13 foo.it = heap.ordered_begin();
14}