Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) C4666

Visual Studio .NET 2003

'declaration' : function differs from 'declaration' only by calling convention

This warning occurs when the calling convention of an explicit specialization of a function template is different from that of the function template.

Example

// C4666.cpp
// compile with: /W1 /LD
template<class T> void __cdecl f(const T &) { }
template<> void __stdcall f(const int &) { } // C4666
Show:
© 2015 Microsoft