answersLogoWhite

0

Your code contains an ambiguity that the compiler cannot disambiguate.

Ambiguities occur when you implicitly refer to a member for which multiple instances exist in separate namespaces. For instance, if class A is a common base class of B and C, and class D derives from both B and C, class D inherits two instance of class A, thus introducing an ambiguity when implicitly referring to members of class A. To remove the ambiguity, you must either explicitly refer to class A via class B or class C, or declare class A to be virtual in both class B and C so they both share the same instance of class A.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you solve error c plus plus ntvdm CPU illegal?

Use the debugger to locate the error.


Microsoft visual c plus plus rumetime library runtime error cant access game?

runtime error


When you install visual c plus plus 2008 express edition it says an error?

Use the Microsoft support website to locate the error message and the solution to the error.


How do you fix the Microsoft c plus plus error?

Too many errors possible to say. Please elaborate.


Why wont your C plus plus programs compile?

C++ programs won't compile if they contain compiler errors. The compiler will tell you precisely where the error is, and the type of error, unless the error is in a macro. The compiler cannot see macro definitions because they are inline expanded prior to compilation.


What kind of an error in c plus plus is dividing by zero?

The answer is in your own question. A divide by zero error is a divide or mod by zero type of error. In MSVC++ it has the error code C2124. Ultimately it is a fatal error and will either produce a compile time error or throw an unhandled exception at runtime.


How do you solve this error under-fined symbol 'cin'in c plus plus?

#include <iostream> using namespace std;


What is a syntax error in c plus plus?

Syntax error is a kind of error when compiler does not recognize the command you are trying to use. It happens because of two reasons: first is you forgot to include required library; second is such command does not exist.


Explain System Error in c plus plus?

A system error is an error that originates from the operating system or other low-level operation. Every system error is identified by a single integer value which is specific to the platform. In Windows, for instance, you will find a list of all error codes in the <winerror.h> header file.


What is exception handling in C plus plus?

Exception handling is the means by which exceptions -- anomalous events -- are resolved without causing a runtime error.


A equals 10 b equals a plus plus plus plus plus a?

In C/C++, this code int a = 5; return a+++++a; leads to error. However, writing int a = 5; return (a++ + ++a); returns 12. Note that in other languages "a=5; a+++++a" leads to different results :)


How do you correct the C plus plus programming error missing function header?

You need to #include the header file that contains the missing function's declaration.