Skip to content

Instantly share code, notes, and snippets.

@kchodorow
Created April 20, 2011 19:59
Show Gist options
  • Save kchodorow/932567 to your computer and use it in GitHub Desktop.
Save kchodorow/932567 to your computer and use it in GitHub Desktop.
tester.cpp
#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;
}
namespace other {
class other_type {
public:
void some_method();
};
};
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