Advertisement
pushrbx

CComPtr<T> vs Collection paradox

Mar 19th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. TValue& GetAddress(TKey ItemKey)
  2. {
  3.     ATLASSERT(Contains(ItemKey));
  4.     if(strstr(typeid(m_items[ItemKey]).name(), "CComPtr"))
  5.     {
  6.         return m_items[ItemKey];
  7.     }
  8.     return *m_items[ItemKey];
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement