diff options
Diffstat (limited to 'boost/heap/detail/stable_heap.hpp')
-rw-r--r-- | boost/heap/detail/stable_heap.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boost/heap/detail/stable_heap.hpp b/boost/heap/detail/stable_heap.hpp index e9f3f2cd87..f9101afd10 100644 --- a/boost/heap/detail/stable_heap.hpp +++ b/boost/heap/detail/stable_heap.hpp @@ -263,6 +263,11 @@ struct heap_base<T, Cmp, constant_time_size, StabilityCounterType, true>: rhs.counter_ = 0; } + heap_base(heap_base & rhs): + Cmp(static_cast<Cmp&>(rhs)), + size_holder_type(static_cast<size_holder_type&>(rhs)), counter_(rhs.counter_) + {} + heap_base & operator=(heap_base && rhs) { Cmp::operator=(std::move(static_cast<Cmp&>(rhs))); |