Dela via


Kompilatorvarning (nivå 1) C4180

Kvalificeraren som tillämpas på funktionstypen har ingen betydelse och ignoreras.

Anmärkningar

En kvalificerare, till exempel const, tillämpas på en funktionstyp som definieras av typedef.

Example

I följande exempel genereras 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