Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are [[attributes]] new to C++11?

Tags:

c++

c++11

using C++11 attributes gives a hint that [[attributes]] are new to C++11.

I would like to confirm this: Are attributes new to C++11?

like image 256
Dan Nissenbaum Avatar asked Dec 08 '12 19:12

Dan Nissenbaum


1 Answers

Yes, attributes are a new feature in the 2011 ISO C++ standard; they are not specified in the previous 2003 standard.

They're documented in section 7.6 [dcl.attr] of the standard. A recent draft of the standard is N3376 (PDF, 4.9 MB).

like image 120
Keith Thompson Avatar answered Oct 31 '22 11:10

Keith Thompson