'identifier' : 'nothrow' は、関数宣言または関数定義にのみ適用できます。
注釈
nothrow 拡張属性は、関数宣言または関数定義にのみ適用できます。
Example
次の例では C2495 が生成されます。
// C2495.cpp
// compile with: /c
__declspec(nothrow) class X { // C2495
int m_data;
} x;
__declspec(nothrow) void test(); // OK