C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C2585
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2585
 
     explicit conversion to 'type' is ambiguous
 
     The type conversion could produce more than one result.
 
     Ambiguous conversion can result when converting from a class (or
     structure) type based on multiple inheritance. If the same base
     class is inherited more than once, the conversion function or
     operator must specify which of the inherited classes to use in the
     conversion. The scope resolution operator (::) can be used to do
     this.
 
     Ambiguous conversion can also be caused when a conversion
     operator and a constructor making the same conversion have been
     defined.
                                    -♦-