B
Bryan
I have a template class declared like this:
template <class T>
class CKineStore
{
public:
CKineStore(void) {};
virtual ~CKineStore(void) {};
public:
void Insert(CKineTypes::ECKineType type, T&);
private:
typedef std:
air <CKineTypes::ECKineType, T> m_pair;
typedef std::map <CKineTypes::ECKineType, T> m_map;
};
template <class T> void CKineStore<T>::Insert(CKineTypes::ECKineType
type, T& t)
{
m_map.insert(m_pair(type, t));
}
If I dont call Insert() it compiles okay, but when I call it I get an
unresolved external symbol error. What am I doing wrong?
Thanks,
B
template <class T>
class CKineStore
{
public:
CKineStore(void) {};
virtual ~CKineStore(void) {};
public:
void Insert(CKineTypes::ECKineType type, T&);
private:
typedef std:
typedef std::map <CKineTypes::ECKineType, T> m_map;
};
template <class T> void CKineStore<T>::Insert(CKineTypes::ECKineType
type, T& t)
{
m_map.insert(m_pair(type, t));
}
If I dont call Insert() it compiles okay, but when I call it I get an
unresolved external symbol error. What am I doing wrong?
Thanks,
B