Skip to content

boost::heap::skew_heap improperly handles rvalue_reference when creating a node. #24

@kalaxy

Description

@kalaxy

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 with skew_heap.

I'm pretty sure that you just need to add std::move to the initializer list construction. E.g.

    skew_heap_node(value_type && v):
        value(std::move(v))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions