I am using the std:: map as following.
typedef struct _SeatRowCols
{
long nSeatRow;
unsigned char ucSeatLetter;
}SeatRowCols;
typedef struct _NetData
{
SeatRowCols tSeatRowCols;
unsigned char ucMacAddress[MAC_LENGTH];
unsigned char ucAdminStatus;
unsigned char ucLocalFault;
}NetData;
typedef std::map <SeatRowCols, PedData> MAP_PED_DATA;
..........
.............
MAP_PED_DATA data;
PedData pdata;
SeatRowCols sdata;
memset((void*)& sdata,0,sizeof( SeatRowCols));
sdata.nSeatRow =1;
sdata.ucSeatLet ter ='A';
memset((void*)& pdata,0,sizeof( PedData));
pdata.nPortClas s = 1;
pdata.tSeatRowC ols = sdata;
data[sdata] = pdata;
while compiling this code the following error are occurs.
Compiling...
DemoOfDatatStru ctures.cpp
E:\testprjs\tes tit\DemoOfDatat Structures\Demo OfDatatStructur es.cpp(79)
: warning C4786:
'std::reverse_b idirectional_it erator<std::_Tr ee<_SeatRowCols ,std::pair<_Sea tRowCols
const
,_PedData>,std: :map<_SeatRowCo ls,_PedData,std ::less<_SeatRow Cols>,std::
allocator<_PedD ata>
::_Kfn,std::le ss<_SeatRowCols >,std::allocato r<_PedData> >::iterator,std ::pair<_SeatRow Cols const ,_PedData>,std: :pair<_SeatRowC ols const ,_PedData> &,std::pair<_Se atRowCols const ,_PedData> *,int>' : identifier was truncated to '255' characters in the debug information
E:\testprjs\tes tit\DemoOfDatat Structures\Demo OfDatatStructur es.cpp(79)
: warning C4786:
'std::reverse_b idirectional_it erator<std::_Tr ee<_SeatRowCols ,std::pair<_Sea tRowCols
const
,_PedData>,std: :map<_SeatRowCo ls,_PedData,std ::less<_SeatRow Cols>,std::
allocator<_PedD ata>::_Kfn,std::le ss<_SeatRowCols >,std::allocato r<_PedData> >::const_iterat or,std::pair<_S eatRowCols const ,_PedData>,std: :pair<_SeatRowC ols const ,_PedData> const &,std::pair<_Se atRowCols const ,_PedData> const *,int>' : identifier was truncated to '255' characters in the debug information
E:\testprjs\tes tit\DemoOfDatat Structures\Demo OfDatatStructur es.cpp(79)
: warning C4786:
'std::pair<std: :_Tree<_SeatRow Cols,std::pair< _SeatRowCols const
,_PedData>,std: :map<_SeatRowCo ls,_PedData,std ::less<_SeatRow Cols>,std::allo cator<_PedData>::_Kf n,std::less<_Se atRowCols>,std: :allocator<_Ped Data>::iterator,std ::_Tree<_SeatRo wCols,std::pair <_SeatRowCols const ,_PedData>,std: :map<_SeatRowCo ls,_PedData,std ::less<_SeatRow Cols>,std::allo cator<_PedData> >::_Kfn,std::le ss<_SeatRowCols >,std::alloc ator<_PedData> >::iterator>' : identifier was truncated to '255'
characters in the debug information
E:\testprjs\tes tit\DemoOfDatat Structures\Demo OfDatatStructur es.cpp(79)
: warning C4786:
'std::pair<std: :_Tree<_SeatRow Cols,std::pair< _SeatRowCols const
,_PedData>,std: :map<_SeatRowCo ls,_PedData,std ::less<_SeatRow Cols>,std::allo cator<_PedData>::_Kf n,std::less<_Se atRowCols>,std: :allocator<_Ped Data>::const_iterat or,std::_Tree<_ SeatRowCols,std ::pair<_SeatRow Cols const ,_PedData>,std: :map<_SeatRowCo ls,_PedData,std ::less<_SeatRow Cols>,std::allo cator<_PedData> >::_Kfn,std::le ss<_SeatRowCols >,std:
:allocator<_Ped Data> >::const_iterat or>' : identifier was truncated to
'255' characters in the debug information
e:\program files\microsoft visual studio\vc98\inc lude\functional (86) :
error C2784: 'bool __cdecl std::operator <(const class
std::multimap<_ K,_Ty,_Pr,_A> &,const class std::multimap<_ K,_Ty,_Pr,_A>
&)' : could not deduce template argument for 'const
class std::multimap<_ K,_Ty,_Pr,_A> &' from 'const struct _SeatRowCols'
e:\program files\microsoft visual
studio\vc98\inc lude\functional (86) : while compiling class-template
member function 'bool __thiscall std::less<struc t
_SeatRowCols>:: operator ()(const struct _SeatRowCols &,const struct
_SeatRowCols &) const
'
e:\program files\microsoft visual studio\vc98\inc lude\functional (86) :
error C2784: 'bool __cdecl std::operator <(const class
std::map<_K,_Ty ,_Pr,_A> &,const class std::map<_K,_Ty ,_Pr,_A> &)' :
could not deduce template argument for 'const class std
::map<_K,_Ty,_P r,_A> &' from 'const struct _SeatRowCols'
e:\program files\microsoft visual
studio\vc98\inc lude\functional (86) : while compiling class-template
member function 'bool __thiscall std::less<struc t
_SeatRowCols>:: operator ()(const struct _SeatRowCols &,const struct
_SeatRowCols &) const
'
e:\program files\microsoft visual studio\vc98\inc lude\functional (86) :
error C2784: 'bool __cdecl std::operator <(const class
std::_Tree<_K,_ Ty,_Kfn,_Pr,_A> &,const class
std::_Tree<_K,_ Ty,_Kfn,_Pr,_A> &)' : could not deduce template argument
for 'c
onst class std::_Tree<_K,_ Ty,_Kfn,_Pr,_A> &' from 'const struct
_SeatRowCols'
e:\program files\microsoft visual
studio\vc98\inc lude\functional (86) : while compiling class-template
member function 'bool __thiscall std::less<struc t
_SeatRowCols>:: operator ()(const struct _SeatRowCols &,const struct
_SeatRowCols &) const
'
e:\program files\microsoft visual studio\vc98\inc lude\functional (86) :
error C2784: 'bool __cdecl std::operator <(const class
std::reverse_it erator<_RI,_Ty, _Rt,_Pt,_D> &,const class
std::reverse_it erator<_RI,_Ty, _Rt,_Pt,_D> &)' : could not deduce te
mplate argument for 'const class
std::reverse_it erator<_RI,_Ty, _Rt,_Pt,_D> &' from 'const struct
_SeatRowCols'
e:\program files\microsoft visual
studio\vc98\inc lude\functional (86) : while compiling class-template
member function 'bool __thiscall std::less<struc t
_SeatRowCols>:: operator ()(const struct _SeatRowCols &,const struct
_SeatRowCols &) const
'
e:\program files\microsoft visual studio\vc98\inc lude\functional (86) :
error C2784: 'bool __cdecl std::operator <(const struct
std::pair<_T1,_ T2> &,const struct std::pair<_T1,_ T2> &)' : could not
deduce template argument for 'const struct std::pair<
_T1,_T2> &' from 'const struct _SeatRowCols'
e:\program files\microsoft visual
studio\vc98\inc lude\functional (86) : while compiling class-template
member function 'bool __thiscall std::less<struc t
_SeatRowCols>:: operator ()(const struct _SeatRowCols &,const struct
_SeatRowCols &) const
'
e:\program files\microsoft visual studio\vc98\inc lude\functional (86) :
error C2784: 'bool __cdecl operator <(_Interface *,class
_com_ptr_t<_Int erfacePtr> &)' : could not deduce template argument for
' *' from 'const struct _SeatRowCols'
e:\program files\microsoft visual
studio\vc98\inc lude\functional (86) : while compiling class-template
member function 'bool __thiscall std::less<struc t
_SeatRowCols>:: operator ()(const struct _SeatRowCols &,const struct
_SeatRowCols &) const
'
e:\program files\microsoft visual studio\vc98\inc lude\functional (86) :
error C2784: 'bool __cdecl operator <(int,class _com_ptr_t<_Int erface>
&)' : could not deduce template argument for 'overloaded function type'
from 'overloaded function type'
e:\program files\microsoft visual
studio\vc98\inc lude\functional (86) : while compiling class-template
member function 'bool __thiscall std::less<struc t
_SeatRowCols>:: operator ()(const struct _SeatRowCols &,const struct
_SeatRowCols &) const
'
e:\program files\microsoft visual studio\vc98\inc lude\functional (86) :
error C2676: binary '<' : 'const struct _SeatRowCols' does not define
this operator or a conversion to a type acceptable to the predefined
operator
e:\program files\microsoft visual
studio\vc98\inc lude\functional (86) : while compiling class-template
member function 'bool __thiscall std::less<struc t
_SeatRowCols>:: operator ()(const struct _SeatRowCols &,const struct
_SeatRowCols &) const
'
Error executing cl.exe.
Please gimme some suggestions.
Regards
kamaraj.M