Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1527: typename problem

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
bugfix Posted - Aug 11 2006 : 02:53:38 AM

template <typename T>
struct _Obj
{
    void doSmth(){};
};

template <typename T>
struct _Blub
{
    typedef _Obj<T> _ObjType;
};

template <typename T>
struct _Test
{
    _Test()
    {
        m_obj.doSmth();
        doSmth(&m_obj);   //<-- m_obj colored wrong
        doSmth(m_obj);   //<-- m_obj colored wrong
    }
    void doSmth(typename _Blub<T>::_ObjType* obj){}   //<-- obj colored wrong
    void doSmth(typename _Blub<T>::_ObjType& obj){}   //<-- obj colored wrong

    typename _Blub<T>::_ObjType m_obj;  //<-- m_obj colored wrong
};




using vs2003
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 13 2006 : 2:46:32 PM
confirmed. thank you for the clear example. exactly the same thing happens in 1532

case=2057

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000