More on attributes

This lesson touches upon some more features of the attributes in C++ 17

Ignoring unknown attributes

The feature is mostly for clarification.

Before C++17, if you tried to use some compiler-specific attribute, you might even get an error when compiling in another compiler that doesn’t support it. Now, the compiler omits the attribute specification and won’t report anything (or just a warning). This wasn’t mentioned in the Standard, and it needed clarification.

Get hands-on with 1200+ tech skills courses.