TheWisp / signals

General purpose modern C++ Signal-Slot providing ease of use, flexibility and extremely high performance aiming to replace traditional interfaces in real-time applications
MIT License
213 stars 25 forks source link

Auto resolve ambiguously overloaded functions #1

Open TheWisp opened 4 years ago

TheWisp commented 4 years ago
signal<void(int)> sig;

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

int main(){
  sig.connect(f); //shouldn't be ambiguous
}
dumblob commented 3 years ago

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