Compiler Error C3187

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

__func__' : is only available within the body of a function

The predefined macro is not available outside the body of a function.

To correct this error, move the macro inside the body of a function.

Show: