从VC6到VC7.1后,遇到的C2146编译问题,谁能解决?
Jans 2007-11-23 04:21:27 代码如下:
class CObjectPool
{
public:
class CObjectPoolItem
{
public:
CObjectPoolItem()
{
m_lObjectID = -1;
m_strType = _T("");
m_pObject = NULL;
}
long m_lObjectID;
CString m_strType;
T* m_pObject;
};
public:
typename std::list<CObjectPoolItem> ObjectPoolItemList;
typename ObjectPoolItemList::iterator ObjectPoolItemListIter;
CObjectPool(){}
virtual ~CObjectPool();
T* GetObjectInPool(long lObjectID){}
T* GetObjectInPool(const CString& strType){}
void AddObject(const CString& strType,T* pDevice,long lObjectID){}
ObjectPoolItemList m_ObjectPool;
};