Skip to content

Should __ref_pair::__pair_type just remove_reference rather than remove_cvref? #36

@swolchok

Description

@swolchok

if you have a flat_map<const K, const V>, then it seems flat_map<const K, const V>::__pair_type will be std::pair<K, V>, leaving the type with no conversion to std::pair<const K, const V> despite that being its value_type.

See https://github.com/tzlaine/flat_map/blob/master/implementation/flat_map#L50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions