T
tni
I'm trying to achieve the following:
template<int size>
class A {
};
class B : public A<sizeof(B)> {
};
This obviously doesn't work. Is there some reasonably clean template
magic to achieve this effect?
template<int size>
class A {
};
class B : public A<sizeof(B)> {
};
This obviously doesn't work. Is there some reasonably clean template
magic to achieve this effect?