signals icon indicating copy to clipboard operation
signals copied to clipboard

Auto resolve ambiguously overloaded functions

Open TheWisp opened this issue 5 years ago • 1 comments

signal<void(int)> sig;

void f (int x);
void f (const char* str);

int main(){
  sig.connect(f); //shouldn't be ambiguous
}

TheWisp avatar Jan 16 '20 23:01 TheWisp

Couldn't (shouldn't?) this be workedaround by using an appropriately typed lambda?

dumblob avatar May 31 '21 14:05 dumblob