Compiler Error C2545

 

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

operator' : unable to find overloaded operator

The operator cannot be used with the operands provided. You must supply an overloaded operator with the required operands.

This error can be caused if operands have incorrect type.

This error may be fixed if you define a conversion operator or constructor that takes a single parameter.

Show: