Created
January 25, 2015 15:10
-
-
Save JosephLenton/bc1db7ac2b90cd88b7b5 to your computer and use it in GitHub Desktop.
ambiguous function call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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