Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Error C2585

explicit conversion to 'type' is ambiguous

The type conversion can produce more than one result.

To fix by checking the following possible causes

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

  2. A conversion operator and a constructor have been defined making the same conversion.

Community Additions

© 2015 Microsoft