C++ Logo

SG10

Advanced search

Subject: Re: [SG10] [isocpp-core] [isocpp-lib] Missing feature-test macros
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2019-10-04 14:35:20


On Fri, 4 Oct 2019 at 21:51, Richard Smith via Core
<core_at_[hidden]> wrote:
> For __cpp_nodiscard_reason: I'm opposed to adding this macro in isolation. Either we need to accept that version numbers for feature test macros don't work (the magic numbers are too magical) and completely rethink our approach, or we do not have adequate rationale for this.

Agreed. Testing the value of __has_cpp_attribute already provides for
this particular feature test.

The other comments of yours also seemed quite reasonable to me.


SG10 list run by sg10-owner@lists.isocpp.org