0

I have following classes:

template<class PhysicalType, class LogicalType, int offset>
class Cluster
{
public:
    typedef PhysicalType PhyType;
    typedef LogicalType LogType;
};

template<class PhysicalType>
class Axis 
{

};

How can I create a 3rd class that uses the first one as a template class and further use its typedefs as a template to the second class like so (pseudo):

template<Cluster clusterX, Cluster clusterY>
class Curve
{
    Curve(Axis<clusterX::PhyType> xAxis, Axis<clusterY::PhyType> yAxis)
    {}
};

I need a C++98 solution.

Thanks!

phoebus
  • 1,280
  • 1
  • 16
  • 36

0 Answers0