Skip to content

P1902R1: __cpp_lib_unwrap_ref should probably be defined in <functional>, not in <type_traits> #1

Description

@cpplearner

(Concerning p1902r1)

Since unwrap_reference and unwrap_ref_decay are defined in <functional> ([functional.syn]), their feature test macro should also be defined there.

(unwrap_reference and unwrap_ref_decay depend on reference_wrapper, so it makes sense for them to live in <functional>.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    LWGneed to open a corresponding LWG issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions