Dear Sir/madam,
I am working on Solaris 8.
dbx is showing memory access error in the following line:
template<class keyType_t, class dataType_t>
int WrapperC<keyType_t, dataType_t>::insert(keyType_t keyVal,
dataType_t& info_t )
{
pair<map<keyType_t,dataType_t>::iterator,bool> retItor;
retItor = subsInfoMap_obj.insert( pair<keyType_t, dataType_t>(keyVal, info_t
) );
........
};
WrapperC class is derived from an abstract class which is as follows:
</code>
template<class keyType_t, class dataType_t>
class ContAbsC
{
public:
ContAbsC( keyType_t, dataType_t );
virtual int insertElementInto( keyType_t, dataType_t& ) = 0 ;
protected:
keyType_t keyValue;
dataType_t info;
};
template<class keyType_t, class dataType_t>
class WrapperC : public ContAbsC<keyType_t, dataType_t>
{
protected:
map<keyType_t, dataType_t> Map_obj;
typedef map<keyType_t, dataType_t> InfoMap;
typename typedef map<keyType_t, dataType_t>::iterator InfoMap_itor;
typedef typename pair<typename map<keyType_t,dataType_t>::iterator,bool> Map_pairItor;
public:
WrapperC();
WrapperC(dataType_t);
WrapperC( keyType_t, dataType_t);
virtual int insert( keyType_t, dataType_t& ) ;
//Copy constructor
WrapperC( const WrapperC& Wrapper_o );
//Assignment Operator Overlaoding
WrapperC& operator= ( const WrapperC& mapWrapper_o );
};
dbx is showing similar access errors in lot of other places also. Please guide me to solve this problem.
Regards,
sham