Compiler Error C3556

Visual Studio 2015
 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C3556.

expression': incorrect argument to 'decltype'

The compiler cannot deduce the type of the expression that is the argument to the decltype(``expression``) type specifier. In the following code example, the compiler cannot deduce the type of the myFunction argument because myFunction is overloaded.

void myFunction();  
void myFunction(int);  
decltype(myFunction); // C3556  

Show: