Skip to content

Instantly share code, notes, and snippets.

@chrisforbes
Created October 17, 2009 03:44
Show Gist options
  • Save chrisforbes/212224 to your computer and use it in GitHub Desktop.
Save chrisforbes/212224 to your computer and use it in GitHub Desktop.
#include <cstdio>
void f() { puts( "meep" ); }
template< typename T >
class A
{
public: void f() { puts( "fail" ); }
};
template< typename T >
class B : public A<T>
{
public: void g() { f(); }
};
int main( void )
{
B<int> b;
b.g();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment