Questions tagged [ambiguous]

An ambiguous call is a situation in which the compiler cannot deduce which version of a function or method to use from the given parameter types. This tag should not be confused with the [ambiguity] tag.

An ambiguous call occurs when the parameters can be converted in many ways such that they fit more than one overload of a function. For example:

void f(float f)
{

}

void f(double d)
{

}

Passing an int value to this function will cause an ambiguous call compiler error, because int can be converted both to float and to double while the compiler is not able to choose the overloaded version of function uniquely.

612 questions
0
votes
1 answer

column ambiguously defined in oracle

I am no sql expert. I was trying to run following query on my oracle sqlplus prompt select 0 AS initVal, loadTable.amount from accountsTable JOIN loadTable ON num=accNum , loadTable JOIN loanTable ON loadTable.numSeq=loanTable.numSeq and getting…
peeyush
  • 2,841
  • 3
  • 24
  • 43
0
votes
1 answer

Error Code: 1052 when INSERTing (ID in field list is ambiguous)

I am being thrown a really weird error code, judging that I have successfully INSERTed values using the same query in a similar schema. I am trying to execute the following query: INSERT INTO part_approval (part_quote_key) SELECT part_quote_key FROM…
mmmarius
  • 15
  • 3
0
votes
1 answer

Criteria->with error, Id ambiguous

I have a problem with $criteria->with. I'm trying to search in a relation, but it keeps giving me the error: "Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous". I searched for information on the issue and I found that I…
Fradniev
  • 1
  • 3
0
votes
1 answer

ambiguous reference: SharpCompress and BouncyCastle for C#

I'm using BouncyCastle for C# in my Windows 8 / Windows Phone 8 app. Recently I had to include SharpCompression for Windows / Windows Phone 8, but now app can't be build due to ambiguous references to classes inside Org.BouncyCastle.Crypto. I've…
Tertium
  • 6,049
  • 3
  • 30
  • 51
0
votes
1 answer

'sqrt' : ambiguous call to overloaded function ..\assimp\vector3.inl

Error error C2668: 'sqrt' : ambiguous call to overloaded function c:\program files\assimp\include\assimp\vector3.inl occures when I include 'scene.h' in main cpp file: #include "stdafx.h" #include #include #include…
RevanReborn
  • 185
  • 1
  • 1
  • 6
0
votes
2 answers

VC++ 2012: "found using argument-dependent lookup" work-around?

It was probably asked, but I'm interested in how to make this code work with VC 2012: #include namespace ns { struct Obj { }; template void swap(T& a, T& b) { } } int main(int argc, char* argv[]) { std::vector
0
votes
1 answer

What is this formula involving circles trying to do?

x, y, z = pos radius = width / 2.0 if width >= 0.0: x = -x a = radius * math.pi a = (x/a) * math.pi This is a code snippet from someone other than me, and I've been wanting to understand it. However, the variable a is a little ambiguous, and…
0
votes
0 answers

Spring MVC: got "ambiguous mapping found" error when extending annotated base controller with @Controller

I am using Spring MVC 3.2.4. I want to extend an existing annotated base controller to override some existing methods. Here is what I want to do, /**Base Controller**/ @controller public class BaseController { @RequestMapping(value="/process") …
0
votes
1 answer

Ambiguous functions when compiling in OS X Mavericks

I've been fighting to install GDL on my Macbook, 10.9.2, and I came across a lot of problems when compiling. Eventually I managed after lots of issues of the form: /Downloads/gdl-0.9.4/src/basic_fun.cpp:6415:14: error: call to 'isalpha' is…
Josh
  • 2,658
  • 31
  • 36
0
votes
3 answers

Ambiguous class occurence in Haskell

Using Trees and defining a new "Eq" I'm getting an "Ambiguous class occurrence 'Eq' *** Could refer to: Hugs.Prelude.Eq Main.Eq". I'm aware that I'm trying to add a new definition for the existing Eq-Class of the prelude, but I don't want to use…
0
votes
1 answer

Numpy Truth Ambiguous Array in Sudoku

I'm trying to list possibilities in a sudoku grid if another part of the program cannot solve and for some reason keep getting ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() even though the…
Krilion
  • 11
  • 2
0
votes
1 answer

Overload resolution of function templates in VS2013 RC

Compiling following code in VS2012 without any problem. struct Foo { typedef int DummyType; }; template int Bar(T* foo, typename T::DummyType* dummy_ = 0) { return 0; } template int Bar(T* foo, ...) { return 1;…
Orup
  • 559
  • 1
  • 5
  • 14
0
votes
3 answers

call to an overloaded function while calling template

I am calling a template for finding a min out of two values The code is : #include #include using namespace std; template T min(T a,T b) { return (a
bhawin
  • 267
  • 1
  • 6
  • 15
0
votes
1 answer

Ambiguous template class constructor

I'm implementing a N-dimensional array library. Consider this code: template class Array { { public: // constructor for vectors, valid when Rank==1 Array(int dim0, Type val = Type()); // constructor for matrices,…
montefuscolo
  • 259
  • 2
  • 13
0
votes
1 answer

'GlobalHost' is ambiguous in the namespace 'Microsoft.AspNet.SignalR'

I can't seem to figure out why I'm getting this error, I'm using signalr 1.1.3 (I upgraded from 1.0.0 recently) but after upgrading, this error has been plaguing me for a while. Any help is much appreciated. the file in question Imports…