I try to use boost unordered_map with key as template variable.
template<typename T>
std::string CPerformanceWatcher<T>::CheckPerformance(T &sOrderID, bool bDeleteRecord)
{
boost::unordered_map<T, int>::iterator iter;
iter = m_OrderIDTimeValMap->find(sOrderID);
if(iter == m_OrderIDTimeValMap->end())
{
return false;
}
return false;
}
But the compile complains with syntax error. So my question is if I cannot use such an iterator?