Compiler Error C2542

 

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

identifier' : class object has no constructor for initialization

There is no constructor with a parameter list that matches the initialization.

This error can be caused by incorrect parameters in initialization.

Show: