Skip to content

Instantly share code, notes, and snippets.

@SQReder
Created October 26, 2016 17:11
Show Gist options
  • Save SQReder/921405f6fafc75ec20ccb440ee310eb5 to your computer and use it in GitHub Desktop.
Save SQReder/921405f6fafc75ec20ccb440ee310eb5 to your computer and use it in GitHub Desktop.
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