Created
October 26, 2016 17:11
-
-
Save SQReder/921405f6fafc75ec20ccb440ee310eb5 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
template<class T, class F> | |
class Kernel { | |
public: | |
virtual void exec()=0; | |
}; | |
template<class T> | |
class PartialKernel: public Kernel<T, int> { | |
public: | |
void exec() {} | |
}; | |
template<class T> | |
class StupidKernel: public PartialKernel<int> { | |
public: | |
void exec() { | |
auto i = 0; | |
} | |
}; | |
int main() { | |
StupidKernel<int> ker; | |
ker.exec(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment