Created
April 20, 2011 19:59
-
-
Save kchodorow/932567 to your computer and use it in GitHub Desktop.
tester.cpp
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 <stdio.h> | |
#include "other.h" | |
#include "tester.h" | |
namespace other { | |
void other_type::some_method() { | |
printf("here\n"); | |
} | |
} | |
void Foo::foo(other::other_type* o) { | |
o->some_method(); | |
} | |
int main() { | |
Foo f; | |
other::other_type o; | |
f.foo(&o); | |
return 0; | |
} |
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
namespace other { | |
class other_type { | |
public: | |
void some_method(); | |
}; | |
}; |
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
namespace other { | |
class other_type; | |
} | |
class Foo { | |
public: | |
void foo(other::other_type* o); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment