Here's my code:
#include <iostream>
struct Plot {
float test;
Plot() : test(1.0f) {
}
};
template <class T>
struct PlotTest : Plot {
T *pModule;
PlotTest(T *module) : Plot(), pModule(module) {
}
};
template <class T>
struct PlotTestCustom : PlotTest<T> {
PlotTestCustom(T *module) : PlotTest<T>(module) {
test = 2.0f;
}
};
int main()
{
}
But when I compile, it seems that PlotTestCustom
can't see the float test;
variable (which is on the "main" parent).
Where am I wrong?