Compiler Error C3552

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

typename': a late specified return type cannot contain 'auto'

If you use the auto keyword as a placeholder for the return type of a function, you must provide a late-specified return type. However, you cannot use another auto keyword to specify the late-specified return type. For example, the following code fragment yields error C3552.

auto myFunction->auto; // C3552

Show: