Example for derivation of templates classes
- Author
- MIP
#include <Base/Common/Constraints.hh>
using namespace BIAS;
class Base {
public:
Base() {}
};
class NonBase {
public:
NonBase() {}
};
class FromBase : public Base {
public:
FromBase() {}
};
template<class T>
class MyTemplate
{
public:
MyTemplate() {}
};
int main()
{
MyTemplate<Base> base2;
MyTemplate<FromBase> frombase2;
return 0;
}