Ticket #12873: test.cpp
File test.cpp, 393 bytes (added by , 6 years ago) |
---|
Line | |
---|---|
1 | #include <boost/heap/d_ary_heap.hpp> |
2 | |
3 | template<typename T> |
4 | struct 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 | |
9 | int 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 | } |