-
-
Save anonymous/6424b9efaf5b5b8006324a4e42c00d76 to your computer and use it in GitHub Desktop.
This file contains 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
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
int main() { | |
int a = 5, b = 6; | |
// ambiguous call to pow should (and was not in the past) be reported. Yes, there is | |
// no overload taking two integers, but still, I feel like this is wrong. | |
int c = pow(a, b); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment