Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1527: typename problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bugfix
Tomato Guru

Germany
324 Posts

Posted - Aug 11 2006 :  02:53:38 AM  Show Profile  Reply with Quote

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

http://www.mf-sd.de

feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - Aug 13 2006 :  2:46:32 PM  Show Profile  Reply with Quote
confirmed. thank you for the clear example. exactly the same thing happens in 1532

case=2057

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000