<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Nov 16, 2015 at 1:12 PM, Aaron Ballman <span dir="ltr">&lt;<a href="mailto:aaron@aaronballman.com" target="_blank">aaron@aaronballman.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Nov 13, 2015 at 8:58 PM, Nelson, Clark &lt;<a href="mailto:clark.nelson@intel.com">clark.nelson@intel.com</a>&gt; wrote:<br>
&gt; Here is a draft of SD-6, updated with decisions from the Kona meeting. But<br>
&gt; naturally, there are lot of places I mark guesses that I have made.<br>
&gt;<br>
&gt; Unfortunately, because the redlining is relative to the published SD-6, it<br>
&gt; might be less than obvious what is really new -- except that we changed from<br>
&gt; N-numbers to P-numbers at this meeting.<br>
&gt;<br>
&gt; As always, corrections and contributions are most earnestly welcomed.<br>
<br>
</span>I am slightly confused about:<br>
<br>
N4266: Attributes for namespaces and enumerators<br>
<br>
Example:<br>
<br>
enum {<br>
old_val<br>
#if __cpp_enumerator_attributes<br>
[[deprecated]]<br>
#endif<br>
, new_val };<br>
<br>
The notion of feature testing macros for C++ attributes was not voted<br>
favorably by EWG in Kona, and what I understand from reading the<br>
discussion (which could be me horribly misunderstanding the feeling in<br>
the room) was that there was insufficient motivation for such a thing.<br>
However, this is a feature testing macro... for an attribute, just<br>
with a different spelling than what SG-10 proposed.<br>
<br>
If we need this feature testing macro (which I believe we do), can we<br>
use this as a motivating case for EWG to reconsider as to why<br>
__has_cpp_attribute is valuable?</blockquote><div><br></div><div>This is feature-testing for the ability to apply an attribute to an enumeration, not for the [[deprecated]] attribute itself. Without the #ifdef, the above code would fail to parse in compilers that do not implement the change allowing attributes on enumerators.</div></div></div></div>