Skip to content

Instantly share code, notes, and snippets.

@jdoerfert
Created August 6, 2019 20:12
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 jdoerfert/52dbe9e6e823e52854def6d66bd13408 to your computer and use it in GitHub Desktop.
Save jdoerfert/52dbe9e6e823e52854def6d66bd13408 to your computer and use it in GitHub Desktop.
// header.h
struct Base {
virtual void foo() {}
};
template<typename A>
struct S : public Base{
virtual void foo();
};
// code.cpp
static void warning() {}
template<typename A>
void S<A>::foo() {
warning();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment