'identifier' : 'nothrow' can only be applied to function declarations or definitions
The nothrow extended attribute can be applied to function declarations or definitions only. The following code generates this error.
Example
__declspec(nothrow) class X { int m_data; } x;