Created
August 6, 2019 20:12
-
-
Save jdoerfert/52dbe9e6e823e52854def6d66bd13408 to your computer and use it in GitHub Desktop.
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
// 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