Compiler Error C3551

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

expected a late specified return type"

If you use the auto keyword as a placeholder for the return type of a function, you must provide a late-specified return type. In the following example, the late-specified return type of function myFunction is a pointer to an array of four elements of type int.

auto myFunction()->int(*)[4];   

auto

Show: