C++ Logo

sg10

Advanced search

Re: [SG10] Updates to SD-6

From: Aaron Ballman <aaron_at_[hidden]>
Date: Fri, 2 Jan 2015 09:55:12 -0500
On Thu, Jan 1, 2015 at 9:31 PM, Richard Smith <richard_at_[hidden]> wrote:
> On Mon, Dec 29, 2014 at 5:45 PM, Nelson, Clark <clark.nelson_at_[hidden]>
> wrote:
>> > N4266 - Attributes for namespaces and enumerators. They really are sort
>> > of two different things:
>>
>> > __cpp_namespace_attributes 201411
>> > __cpp_enumerator_attributes 201411
>>
>> Hmm. It could be argued that each attribute that can appertain to a
>> namespace or enumerator is a distinct thing. Today there is only one such
>> attribute: deprecated. We could even consider bumping the value of
>> __cpp_has_attribute(deprecated).
>
>
> I like both new macros. I don't think we need to change the value of
> __cpp_has_attribute(deprecated) unless we're worried that an implementation
> might ship the syntax support for namespace attributes and enumerator
> attributes but not allow the [[deprecated]] attribute to appertain to them.

I agree with Richard here. I like having both new macros
(implementation of these can be separated). I don't think we need to
bump the deprecated value for this.

~Aaron

Received on 2015-01-02 15:55:13