次の方法で共有


コンパイラの警告 (レベル 1) C4180

関数型へ適用された修飾子は無効なため、無視されます。

注釈

const などの修飾子が、typedef で定義された関数型に適用されています。

次の例では C4180 が生成されます。

// C4180.cpp
// compile with: /W1 /c
typedef int FuncType(void);

// the const qualifier cannot be applied to the
// function type FuncType
const FuncType f;   // C4180