|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
std::reverse_iterator in Sun C++
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; typedeftypename 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> Last edited by shingpui; 08-14-2009 at 04:59 PM.. |
| Sponsored Links | ||
|