C++ Logo

liaison

Advanced search

Re: [wg14/wg21 liaison] [isocpp-core] Ignorability of attributes: draft wording, and concern about __has_c_attribute

From: Gabriel Dos Reis <gdr_at_[hidden]>
Date: Wed, 8 Feb 2023 21:01:08 +0000
+1.

-- Gaby

________________________________
From: Core <core-bounces_at_[hidden]> on behalf of Herring, Davis via Core <core_at_[hidden]>
Sent: Wednesday, February 8, 2023 11:31:47 AM
To: Uecker, Martin <Martin.Uecker_at_[hidden]>
Cc: Herring, Davis <herring_at_[hidden]>; core_at_[hidden] <core_at_[hidden]>; Liaison_at_[hidden] <Liaison_at_[hidden]>; ext_at_[hidden] <ext_at_[hidden]>
Subject: Re: [isocpp-core] [wg14/wg21 liaison] Ignorability of attributes: draft wording, and concern about __has_c_attribute

>> I'm not sure why this is different from any other feature-test macro.
>> [...]
>
> What would be the use case for this?

Well, certainly some feature-test macros indicate the presence of significant portable functionality: __cpp_lib_ranges_iota, for example. It is equally certain that feature-test macros are of less value when they indicate the presence of things that do not have such portable functionality. Set against this is the questionable value that a "really does what I ask" test has in a context where "really" isn't very meaningful.

Davis
_______________________________________________
Core mailing list
Core_at_[hidden]
Subscription: https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isocpp.org%2Fmailman%2Flistinfo.cgi%2Fcore&data=05%7C01%7Cgdr%40microsoft.com%7C9865679212df4324671808db0a0b253e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638114815224556064%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gIsBfv%2BP9KT%2FN5r5NuoZFlDUfMOFXxK9vk6VVdg35jU%3D&reserved=0
Link to this post: https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.isocpp.org%2Fcore%2F2023%2F02%2F13863.php&data=05%7C01%7Cgdr%40microsoft.com%7C9865679212df4324671808db0a0b253e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638114815224556064%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9nA87S8nXgCp7ucRY13vPD1er0dB5c%2Bq8dCTJOB3Qd4%3D&reserved=0

Received on 2023-02-08 21:01:13