Skip to content

Instantly share code, notes, and snippets.

@JosephLenton
Created January 25, 2015 15:10
Show Gist options
  • Save JosephLenton/bc1db7ac2b90cd88b7b5 to your computer and use it in GitHub Desktop.
Save JosephLenton/bc1db7ac2b90cd88b7b5 to your computer and use it in GitHub Desktop.
ambiguous function call
void testo(
std::function<void(std::string str, int len)> a,
std::function<void(int i)> b
) {
}
void testo(
std::function<void(int i)> a,
std::function<void(std::string str, int len)> b
) {
}
// error, ambiguous call to overload function
testo(
[](int i) {},
[](std::string str, int len) {}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment