Menu

#2 Fix for infoElement

open
nobody
None
5
2011-01-17
2011-01-17
No

Change to infoElemet:

Note also that I can't compile it without removing the const keyword with MSVC.

template <class _InfoElement>
_InfoElement& infoElement() const
{
typename _InfoElementsMap::iterator it = infoElements_.find(_InfoElement::infoElementID);
if (infoElements_.end() == it)
throw typename Base::failure("TPUserData: Information Element not found");
// WMM - start
// return *it;
return dynamic_cast<_InfoElement&>(*it->second);
// WMM - end
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.