Last active
August 29, 2015 14:23
-
-
Save vinipsmaker/4feb1e9df66853c1e79e 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
class X {}; | |
void foo(X a, int b); | |
class Y | |
{ | |
public: | |
void foo(int b); | |
}; | |
int main() | |
{ | |
int b; | |
// Interpretação #1 | |
{ | |
X a; | |
foo(a, b); | |
} | |
// Interpretação #2 | |
{ | |
Y a; | |
a.foo(b); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment