Skip to content

Instantly share code, notes, and snippets.

/main.cpp Secret

Created December 24, 2016 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6424b9efaf5b5b8006324a4e42c00d76 to your computer and use it in GitHub Desktop.
Save anonymous/6424b9efaf5b5b8006324a4e42c00d76 to your computer and use it in GitHub Desktop.
#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