Skip to content

Instantly share code, notes, and snippets.

@poseidon4o
Created August 5, 2015 12:18
Show Gist options
  • Save poseidon4o/29864f95f4307defbf95 to your computer and use it in GitHub Desktop.
Save poseidon4o/29864f95f4307defbf95 to your computer and use it in GitHub Desktop.
#include <cstdio>
void f(int x, int y) {
puts("f::f(int, int)");
}
void f(int x) {
puts("f::f(int)");
}
struct r {
r(int) {
puts("r::r(int)");
}
r(int, int) {
puts("r::r(int, int)");
}
};
int main() {
(f)(3, 4);
auto x = (r)(3, 4);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment