std::reverse_iterator in Sun C++ | Unix Linux Forums | Programming

  Go Back    


Programming Post questions about C, C++, Java, SQL, and other programming languages here.

std::reverse_iterator in Sun C++

Programming


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-14-2009
shingpui shingpui is offline
Registered User
 
Join Date: May 2009
Last Activity: 14 August 2009, 5:09 PM EDT
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -4. The time now is 04:00 PM.