Created
October 30, 2011 20:46
-
-
Save ben0x539/1326418 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Foo { | |
public: | |
template<typename T> | |
void bar() { | |
T::derp(); | |
} | |
}; | |
class Helper { | |
public: | |
static void derp() { | |
std::cout << "Hello, world\n"; | |
} | |
}; | |
int main() { | |
Foo f; | |
f.bar<Helper>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment