C++ Logo

sg10

Advanced search

[SG10] __cpp_lib_unwrap_ref in wrong header

From: Barry Revzin <barry.revzin_at_[hidden]>
Date: Sat, 30 Nov 2019 23:09:54 -0500
Hi SG10 and LWG,

cpplearner points out in https://github.com/BRevzin/sd6/issues/1 that:

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

P1902R1 adds this feature test macro in <type_traits> instead. I agree with
them - I think the choice of <type_traits> was my mistake.

Does anybody object to moving it to <functional>?

Assuming no, what should the process of such a change involve? LWG issue?

Barry

Received on 2019-11-30 22:12:29