这条语句为何有错 CMapm_pMap;
其中people为自定义的与MFC无关的类CMap<int, int, people, people&>m_pMap;
错误提示为
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1474) : error C2512: 'people' : no appropriate default constructor available
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1566) : while compiling class-template member function 'void __thiscall CMap<int,int,class people,class people &>::Serialize(class CArchive &)'
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1493) : error C2512: 'people' : no appropriate default constructor available
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1566) : while compiling class-template member function 'void __thiscall CMap<int,int,class people,class people &>::Dump(class CDumpContext &) const'
Error executing cl.exe.