Compiler Error C2154
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 C2154.
type' : only enumeration type is allowed as an argument to compiler intrinsic type trait '__underlying_type'
You can only get the underlying type of an enumeration type.
For more information, see Compiler Support for Type Traits.
Show: