Reputation: 6298
Is '@' used in C++? In this yacc file it is listed as a token. And i am sure i cant use @ as part of a variable name. Is @ used in C++? and how might i use it?
Upvotes: 5
Views: 411
Reputation: 2485
As the above answers mentioned, '@' is not part standard C++; however, it does appear in Objective-C, and hence in Objective-C++, and hence, in real-world code, such as WebKit.
Upvotes: 1
Reputation: 545588
No, it isn’t used in C++. It doesn’t appear anywhere in the standard. In particular, it does not appear in the set of legal C++ characters [lex.charset].
Upvotes: 8