template<class X> class MapHolderDataPoint : public MapHolder<X>
{
public:
MapHolderDataPoint::MapHolderDataPoint(){}
MapHolderDataPoint::MapHolderDataPoint(int MaxR_in, int MaxPhi_in, int MaxZ_in):MapHolder<X>(MaxR_in, MaxPhi_in, MaxZ_in){}
My problem is that in MapHolderDataPoint I need to scope the variables (as seen above: eg MapHolder<X>::iter) declared as protected variables of MapHolder. Otherwise they are not recognised in MapHolder. What is confusing is that when I declare an instance of MapHolderDataPoint, it is making it into the constructor of MapHolder, so I don't understand why it can't see the variables. MapHolderDataPoint is also able to see the member functions of MapHolder. The only thing it can't see are the protected data members. Any ideas?
Cheers,
Ellie
It would be really good if u could tell which compiler are u using.............
Coz i tried to do the same thing on Visual studio 6 and its compiling fine without any errors...... all the variables are recognized without problem.