Skip to content

Instantly share code, notes, and snippets.

@vinipsmaker
Last active August 29, 2015 14:23
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 vinipsmaker/4feb1e9df66853c1e79e to your computer and use it in GitHub Desktop.
Save vinipsmaker/4feb1e9df66853c1e79e to your computer and use it in GitHub Desktop.
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