Print the correct type in the callback assign error message (instead of Ptr<const CallbackImplBase>)
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue Jan 15 15:14:24 2008 +0000 (2008-01-15)
changeset 2218b4d3f2e3b09a
parent 2217 0b4567d545de
child 2219 b5bf2588cde2
Print the correct type in the callback assign error message (instead of Ptr<const CallbackImplBase>)
src/core/callback.h
     1.1 --- a/src/core/callback.h	Thu Jan 10 07:31:40 2008 -0800
     1.2 +++ b/src/core/callback.h	Tue Jan 15 15:14:24 2008 +0000
     1.3 @@ -354,7 +354,7 @@
     1.4      if (!DoCheckType (other))
     1.5        {
     1.6          NS_FATAL_ERROR ("Incompatible types. (feed to \"c++filt -t\")"
     1.7 -                        " got=" << typeid (other).name () << 
     1.8 +                        " got=" << typeid (*other).name () << 
     1.9                          ", expected=" << typeid (*this).name ());
    1.10        }
    1.11      m_impl = const_cast<CallbackImplBase *> (PeekPointer (other));