This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Compiler Error C2585
explicit conversion to 'type' is ambiguous
The type conversion can produce more than one result. If you encounter this error on code that compiled successfully with an earlier version of Visual C++, see Technote: Improved Conformance to ANSI C++.
Possible causes
- Converting from a class or structure type based on multiple inheritance. If the type inherits the same base class more than once, the conversion function or operator must use scope resolution (::) to specify which of the inherited classes to use in the conversion.
- A conversion operator and a constructor have been defined making the same conversion.