I have a handle class. The handle class hold an iterator in to a map.
typename typedef std::map<std::string, std::pair<ResourceType*, size_t> >::iterator ResourceItr;
ResourceItr m_Resource;
On construction my code sets the Resource handle to 0. Later I test for the validity of the handle :
template <class ResourceType, typename IOType>
inline bool CHandle<ResourceType, IOType>::IsNull(void) const
{
return (m_Resource == 0); <<<<<<<<<<<<<<<<<<<<<
}
For some reason since upgrading to VS 2005 this test of wether a iterator is null is no longer valid. Can anyone think of why this may no longer be valid?