C++ reinterpret cast ?
- by Ian
I would like to cast one object of the class PointsList to another object Points3DList (and vice versa) where:
template <class T>
class PointsList
{
protected:
std::vector <Point <T> *> points; //Only illustration, not possible with templaes
};
and
template <class T>
class Points3DList
{
protected:
…