Hi,
I'm having trouble compling the following code in Sun C++ (under sun studio 10). I found that it is issue with libCstd library. It can be resolved if i used stdport lib. However, i have no choice but to use libCstd. Does anyone know what can be done to resolve the issue?
Thanks,
/////////////////////////////////////////
Here is the code:
/////////////////////////////////////////
template< class _Ty >
class VectorMe
{
typedef _Ty* _pTy;
typedef std::vector< _pTy > Vector;
typedef typename Vector::iterator iterator;
typedef std::reverse_iterator<iterator> reverse_iterator; //problem with this line when complied under Solaris
...
//main body
...
/////////////////////////////////////////
Here is the error message:
/////////////////////////////////////////
Too few arguments for template std::reverse_iterator<std::vector<_Ty*>::iterator>