Namespaces
Variants
Views
Actions

Talk:cpp/language/attributes

From cppreference.com
< Talk:cpp‎ | language
Revision as of 01:41, 6 May 2023 by Yaossg (Talk | contribs)

It would be nice if the standard attributes were added to the index so they can be searched for. Md5i (talk) 08:38, 11 July 2017 (PDT)

Looking over the description of the deprecated attribute (N4266)

The description of the 'deprecated' attribute does not include the addition of allowing it to be used for namespaces and enumerators, as per N4266.

83.254.9.176 04:53, 14 October 2017 (PDT)

added. --Cubbi (talk) 07:55, 14 October 2017 (PDT)

broken link in the page and mysterious '...'

In this paragraph there is a broken link to '...':

The alignas specifier is a part of the attribute specifier sequence, although it has different syntax. It may appear where the ... attributes appear and may mix with them (provided it is used where alignas is permitted)

and it is mentioned here that parameter pack could be used in attributes:

Attribute list

Pack expansions are allowed in the lists of attributes, as in [[attributes...]]. For example: void [[attributes...]] function()

But I am confused about how could such usages be valid. Is attributes... a pack of typename... or something else?

--Yaossg (talk) 02:41, 6 May 2023 (PDT)