Problem with inheritance and templates my derived class doesn't recognize x which is a member variable in my base class.
template <class type>
class one
{
public:
type getX();
type x;
};
template <class type>
type one<type>::getX()
{
return x;
}
template <class type>
class two: public one <type>
{
public:
type getX();
};
template <class type>
type two<type>::getX()
{
return x;
}