Questions tagged [ambiguity]

Ambiguity can refer to two related concepts: 'ambiguous calls' and 'ambiguous grammars'.

400 questions
0
votes
1 answer

Repeated inheritance. Ambiguous

Lets suppose situation. struct Top { int x; }; struct Left : public Top {}; struct Right : public Top {}; struct Bottom : public Left, public Right { void foo() { Left::x; // Normal compiled } void goo() { Left::Top::x; //…
0
votes
1 answer

Guidance in creating design for multiple-inheritance composite classes in c++

I intend this question to be a more generalized question relating to my question found at the following link: Solving design involving multiple inheritance and composite classes in c++ I am working with data sets related to Galaxies. The data about…
0
votes
2 answers

operator= ambiguity in junction with conversion operators

I have the following situation: class B; class A { private: int n; public: A& operator=(const A& a) { } A& operator=(const int n) { this->n = n; } friend class B; …
strannik
  • 1,595
  • 1
  • 13
  • 22
0
votes
1 answer

proving ambiguity

ive been trying to prove a grammar ambiguous, from my understanding its not, but according to the question; it should be ambiguous. The grammar is S -> AB | aaB A -> a | Aa B -> b the string ive been using is aaab. From what it seems, i dont see…
physicsguy
  • 45
  • 1
  • 8
0
votes
1 answer

postgresql plpgsql compiler: why is it finding ambiguity where there is none

Why this runtime error? ERROR: column reference "arrive" is ambiguous LINE 6: case when ( (cast('05:00' as time) >= arrive) DETAIL: It could refer to either a PL/pgSQL variable or a table column. The thing is, the case statement is in a…
Tim
  • 8,669
  • 31
  • 105
  • 183
0
votes
1 answer

E/R diagrams: is the term entity commonly misused?

Do people often use the word "entity" to refer to what will latter become a table? If yes, isn't this technically incorrect because it's the entity sets that typically become tables? It seems to me that often times people say entity when they mean…
Celeritas
  • 14,489
  • 36
  • 113
  • 194
0
votes
3 answers

C++: ambigous function

I almost don't know C++, but I need help to solve project build problem. When I make project, it gives me error which says that some functions are ambigous. I clearly understand what it's mean "It means that there are other versions of the function…
andriy
  • 4,074
  • 9
  • 44
  • 71
0
votes
3 answers

C++: Constructor ambiguity

Will this cause an ambiguity?: class A { ... }; class B : public A { //... B(const B& b); B(const A& a); //... };
Casey
  • 10,297
  • 11
  • 59
  • 88
0
votes
2 answers

Reusable assembies classes in the WCF are kept under a different namespace in proxy

Possible Duplicate: Ambiguous reference in WCF and client application I am using few classes from an assembly 'X' in my WCF whereas my client code uses same assembly to refer other set of classes. This makes it necessary keep reference of…
CuriousBenjamin
  • 709
  • 1
  • 9
  • 26
0
votes
2 answers

Antlr and left-recursive rules

I am trying to write a grammar using ANTLR, but I can't understand how antlr works with recursive choices. I read lots of articles and forums, but can't solve my problem... Here is a small part of my grammar: grammar MyGrammar; ComponentRef : …
Luc
  • 9
  • 1
  • 2
0
votes
1 answer

Ambigious functions from different base classes in C++

The following code: class Base1 { public: void go() {} }; class Base2 { public: void go(int a) {} }; class Derived : public Base1, public Base2 {}; int main() { Derived d; d.go(3); return 0; } will give an error during…
Cyker
  • 9,946
  • 8
  • 65
  • 93
-1
votes
0 answers

Ontology design with unresolved uncertainty

I am trying to design an ontology to represent the logics that an event is identified by a change to a specific property. Currently, I have following : Classes: Event, PropertyChange (two subclass: PropertyIncrease,…
Alex
  • 21
  • 1
  • 7
-1
votes
1 answer

why does the following code generate a "reference to 'tm' is ambiguous" error?

#include using namespace std; namespace characters { char tm='a'; char tc='a'; } using namespace characters; class table { public: void printline (){ char m; m=tm; //m=tc; …
-1
votes
1 answer

How javac detect ambiguity?

How javac (java compiler) finds the errors in respect to ambiguity and generates errors in compile time itself ? how the compiler finds that we are passing a null value before execution public class Ambiguity { public static void main(String[]…
Sethu MJ
  • 49
  • 3
-1
votes
1 answer

How to use the `record` as a type name and resolve the ambiguity with the `record` keyword in C#?

How to resolve the ambiguity between the record type name and the record keyword in C#? I've seen this SO question it is about 13 years ago but this option is a new feature and related more to modifiers. On that post you can't use class alone in…
Seyfi
  • 1,832
  • 1
  • 20
  • 35
1 2 3
26
27