-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boost::heap::skew_heap improperly handles rvalue_reference when creating a node. #24
Comments
Here is an example which triggers the compiler error.
Switching |
boost.heap is in maintenance mode. but i'm more than happy to integrate PRs |
Hey Tim, curious what this "maintenance mode" is? Does that mean deprecated? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
skew_heap_node
constructor taking an rvalue reference makes a copy instead of moving it in. This prevents the use of move only types withskew_heap
.I'm pretty sure that you just need to add
std::move
to the initializer list construction. E.g.The text was updated successfully, but these errors were encountered: