663 questions
0
votes
0
answers
63
views
Compiler complains about ambiguity when constructing a unique_ptr with a nullptr in curly braces
I'm compiling a project with a header that has the following code:
class ITKCommon_EXPORT Object : public LightObject {
// -- snip --
mutable std::unique_ptr<MetaDataDictionary> ...
1
vote
2
answers
175
views
Detect existence of name in at least one base class
This code (reduced from the Chromium codebase) is accepted by Clang but rejected by GCC:
template<class T> concept Concept = requires {typename T::marker;};
#define INJECT_MARKER using marker = ...
1
vote
1
answer
70
views
Swift : Type of expression is ambiguous without more context
This code works fine:
do {
let (data, _) = try await URLSession.shared.data(from: urlobj)
return data
} catch {
return nil
}
Why this code does not compile after I change try to try??
...
1
vote
1
answer
212
views
.NET MAUI : Ambiguous routes matched closing Popup with .NET 9 and using Community toolkit 12
After updating my project to .NET 9 and now using Community Toolkit 12, I can't understand why I get this "ArgumentException":
System.ArgumentException: 'Ambiguous routes matched for: //...
1
vote
1
answer
104
views
Resolve ambiguous reference in C# file [duplicate]
Having a bit of difficulty resolving an ambiguous reference to the Random method on the following line:
Random result = new Random();
The error is:
'Random' is an ambiguous reference between 'Oxide....
1
vote
1
answer
84
views
Ambiguous method call when using Appwrite's Client.setEndpoint
I created project on appwrite and to connect it with my project I added dependency to my gradle file : implementation 'io.appwrite:sdk-for-android:8.0.0' and in Java
import android.content.Context;
...
0
votes
0
answers
24
views
Ambiguous column when joining table using createQuery
In my database all tables have key Id. How should I join tables correctly?
For example, right now I'm trying to join the Users and Companies tables like this:
export class UserService<ServiceParams ...
0
votes
3
answers
157
views
Solving Ambiguous type variable errors without adding a specific type annotation
I would like to make this code compile and run:
import Data.List
main = print $ elemIndices [] []
Without adding specific type annotations. The error it gives is:
Ambiguous type variable ‘a0’ arising ...
3
votes
2
answers
164
views
Ambiguous Overload only for MSVC
Consider the following code:
#include <vector>
#include <iostream>
struct MySqlStream {
template<class T>
MySqlStream &operator<<( const std::vector<T> &...
1
vote
0
answers
51
views
CS0121 Ambiguous Call with Collection Initializer [duplicate]
I'm on a team with two other devs. For the past few months I've been working on a project in C# 12 independently, and only recently have the other devs pulled my code and run it. For one of them it ...
-1
votes
1
answer
171
views
How to resolve "ambiguous column" error in Laravel Livewire PowerGrid filter with joined tables?
I'm using Laravel Livewire with PowerGrid v2.x and have a query that joins multiple tables to display transaction data. Both transactions and invoices tables contain a transaction_type column, which ...
0
votes
1
answer
176
views
AmbiguousResolutionException: WELD-001335: Ambiguous dependencies for type PersistenceProvider with qualifiers
How do I fix this exception? It is preventing me from starting a Helidon server. I am running TestNG from Eclipse IDE. This does not happen if I execute mvn clean package.
...
Caused by: org.jboss....
1
vote
1
answer
342
views
Delphi ambiguous call of functions
I need to find out where can be wrong function called.
I use this construct for years in thousands of places:
var mQuery:TIBOQuery;
begin
mQuery := CreateQuery(FirebirdTransaction);
try
with ...
0
votes
0
answers
117
views
What are the benefits and drawbacks of some ways to work around the ambiguous `operator==` issue in C++20 (with CRTP inheritance)?
I have a CRTP base class CRTPBase<Child, T> from which inherits the child class Child<T>. My goal is to be able to compare two values of type Child<T> using operator==. However, I ...
0
votes
0
answers
68
views
Method with optional parameters validates fine in the Editor but (sometimes) fails during compilation
I have a problem when compiling this line of code:
var span = m_tracer.StartActiveSpan("FileTrace");
What's strange about this is, this exact same line of code compiles just fine in other ...