I try to compile a legacy project from
here on this website. it is in old style of C++ template before 2003.
it is a straight definition, but I got many errors and the first error is:
Error C2238 unexpected token(s) preceding ';'
the template class definition is below:
template<typename T, typename TListX, typename TListY, typename TPointContainer>
class TKeyDoubleContainer
{
public:
typedef TPointContainer::const_iterator value_type; typedef TListX container_x;
typedef TListY container_y;
TKeyDoubleContainer( container_x* pListX = NULL, container_y* pListY = NULL):m_pListX(pListX), m_pListY(pListY){};
};
What I have tried:
I suspect the problem is in the parameter :typename TPointContainer.
just as a typename, it assumes it has const_iterator type.
it is an old style declartion before 2003, but I can not figure it out quickly how to refactor this piece...
Thanks a million!