Skip to content

Latest commit

 

History

History
46 lines (42 loc) · 1.12 KB

compiler-error-c2585.md

File metadata and controls

46 lines (42 loc) · 1.12 KB
title Compiler Error C2585 | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic error-reference
f1_keywords
C2585
dev_langs
C++
helpviewer_keywords
C2585
ms.assetid 05bb1a9c-28fb-4a88-a1b5-aea85ebdee1c
caps.latest.revision 6
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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.