Compiler Error C3553

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 C3553.

decltype expects an expression not a type

The decltype() keyword requires an expression as an argument, not the name of a type. For example, the last statement in the following code fragment yields error C3553.

int x = 0;

decltype(x+1);

decltype(int); // C3553

Show: