我在一个类中定义了如下的字段:
CMap<LONG,LONG,ActionCmdProcesser,ActionCmdProcesser> m_actCmdProcesserMap;
CMap<LONG,LONG,BoolCmdProcesser,BoolCmdProcesser> m_boolCmdProcesserMap;
CMap<LONG,LONG,IntCmdProcesser,IntCmdProcesser> m_intCmdProcesserMap;
CMap<CMD_ID,LONG,StringCmdProcesser,StringCmdProcesser> m_strCmdProcesserMap;
其中ActionCmdProcesser,BoolCmdProcesser,IntCmdProcesser,StringCmdProcesser都是指向类的成员函数的指针。
但是当我Build项目的时候却产生了如下的warning,共有45个。以下截取了其中两段,不知道哪位高手指点一下怎么消除这些Warning
第一段:
c:\cax\app\microsoft visual studio\vc98\mfc\include\afxtempl.h(1153) : warning C4786: '?GetNextAssoc@?$CMap@JJP8CJourneyCmdProcesser@@AEXPAVIDataEventSubscriber@@JW4StringType@CCommandBehavior@@VCString@@@ZP81@AEX0J12@Z@@QBEXAAPAU__POSITION@@AAJAAP8
CJourneyCmdProcesser@@AEXPAVIDataEventSubscriber@@JW4StringType@CCommandBehavior@@VCString@@@Z@Z' : identifier was truncated to '255' characters in the browser information
        d:\ccm_wa\navhzh\natal-uida3568\natal\src\core\source\hbl\commandinterface.h(231) : see reference to class template instantiation 'CMap<long,long,void (__thiscall CJourneyCmdProcesser::*)(class IDataEventSubscriber *,long,enum CCommandBehavi
or::StringType,class CString),void (__thiscall CJourneyCmdProcesser::*)(class IDataEventSubscriber *,long,enum CCommandBehavior::StringType,class CString)>' being compiled
        d:\ccm_wa\navhzh\natal-uida3568\natal\src\core\source\hbl\journeycmdprocesser.h(58) : see reference to class template instantiation 'CCommandInterface<class CJourneyCmdProcesser>' being compiled
c:\cax\app\microsoft visual studio\vc98\mfc\include\afxtempl.h(1153) : warning C4786: '?GetNextAssoc@?$CMap@JJP8CAddressInputCmdProcesser@@AEXPAVIDataEventSubscriber@@JW4StringType@CCommandBehavior@@VCString@@@ZP81@AEX0J12@Z@@QBEXAAPAU__POSITION@@AA
JAAP8CAddressInputCmdProcesser@@AEXPAVIDataEventSubscriber@@JW4StringType@CCommandBehavior@@VCString@@@Z@Z' : identifier was truncated to '255' characters in the browser information
        d:\ccm_wa\navhzh\natal-uida3568\natal\src\core\source\hbl\commandinterface.h(231) : see reference to class template instantiation 'CMap<long,long,void (__thiscall CAddressInputCmdProcesser::*)(class IDataEventSubscriber *,long,enum CCommandB
ehavior::StringType,class CString),void (__thiscall CAddressInputCmdProcesser::*)(class IDataEventSubscriber *,long,enum CCommandBehavior::StringType,class CString)>' being compiled
        d:\ccm_wa\navhzh\natal-uida3568\natal\src\core\source\hbl\addressinputcmdprocesser.h(25) : see reference to class template instantiation 'CCommandInterface<class CAddressInputCmdProcesser>' being compiled
c:\cax\app\microsoft visual studio\vc98\mfc\include\afxtempl.h(1153) : warning C4786: '?GetNextAssoc@?$CMap@JJP8CNavCommandDelivery@@AEXPAVIDataEventSubscriber@@JW4StringType@CCommandBehavior@@VCString@@@ZP81@AEX0J12@Z@@QBEXAAPAU__POSITION@@AAJAAP8C
NavCommandDelivery@@AEXPAVIDataEventSubscriber@@JW4StringType@CCommandBehavior@@VCString@@@Z@Z' : identifier was truncated to '255' characters in the browser information
        d:\ccm_wa\navhzh\natal-uida3568\natal\src\core\source\hbl\commandinterface.h(231) : see reference to class template instantiation 'CMap<long,long,void (__thiscall CNavCommandDelivery::*)(class IDataEventSubscriber *,long,enum CCommandBehavio
r::StringType,class CString),void (__thiscall CNavCommandDelivery::*)(class IDataEventSubscriber *,long,enum CCommandBehavior::StringType,class CString)>' being compiled
        d:\ccm_wa\navhzh\natal-uida3568\natal\src\core\source\hbl\navcommanddelivery.h(45) : see reference to class template instantiation 'CCommandInterface<class CNavCommandDelivery>' being compiled
c:\cax\app\microsoft visual studio\vc98\mfc\include\afxtempl.h(1349) : warning C4786: 'CMap<long,long,void (__thiscall CAddressInputCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString),void (__thiscall CAddressInpu
tCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString)>::CAssoc' : identifier was truncated to '255' characters in the debug information
        c:\cax\app\microsoft visual studio\vc98\mfc\include\afxtempl.h(1566) : while compiling class-template member function 'int __thiscall CMap<long,long,void (__thiscall CAddressInputCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBeha
vior::StringType,CString),void (__thiscall CAddressInputCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString)>::Lookup(long,void (__thiscall CAddressInputCmdProcesser::*& )(IDataEventSubscriber *,long,enumCCommandBe
havior::StringType,CString)) const'
c:\cax\app\microsoft visual studio\vc98\mfc\include\afxtempl.h(1349) : warning C4786: 'CMap<long,long,void (__thiscall CAddressInputCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString),void (__thiscall CAddressInpu
tCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString)>::CAssoc' : identifier was truncated to '255' characters in the debug information
        c:\cax\app\microsoft visual studio\vc98\mfc\include\afxtempl.h(1566) : while compiling class-template member function 'int __thiscall CMap<long,long,void (__thiscall CAddressInputCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBeha
vior::StringType,CString),void (__thiscall CAddressInputCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString)>::Lookup(long,void (__thiscall CAddressInputCmdProcesser::*& )(IDataEventSubscriber *,long,enumCCommandBe
havior::StringType,CString)) const'
第二段:
c:\cax\app\microsoft visual studio\vc98\include\new.h(76) : warning C4786: 'CMap<long,long,void (__thiscall CAddressInputCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString),void (__thiscall CAddressInputCmdProcess
er::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString)>::CAssoc' : identifier was truncated to '255' characters in the debug information
c:\cax\app\microsoft visual studio\vc98\include\new.h(76) : warning C4786: 'CMap<long,long,void (__thiscall CAddressInputCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString),void (__thiscall CAddressInputCmdProcess
er::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString)>::CAssoc' : identifier was truncated to '255' characters in the debug information
c:\cax\app\microsoft visual studio\vc98\include\new.h(76) : warning C4786: 'CMap<long,long,void (__thiscall CAddressInputCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString),void (__thiscall CAddressInputCmdProcess
er::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString)>::CAssoc' : identifier was truncated to '255' characters in the debug information
c:\cax\app\microsoft visual studio\vc98\include\new.h(76) : warning C4786: 'CMap<long,long,void (__thiscall CAddressInputCmdProcesser::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString),void (__thiscall CAddressInputCmdProcess
er::*)(IDataEventSubscriber *,long,enum CCommandBehavior::StringType,CString)>::CAssoc' : identifier was truncated to '255' characters in the debug information