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
 1526: cast operators underlined with namespaces
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

.oisyn
Tomato Guru

162 Posts

Posted - Jul 10 2006 :  06:50:35 AM  Show Profile  Reply with Quote
#include <iostream>

namespace A { typedef int foo; }
typedef int foo;

int main()
{
	static_cast<foo*>(0);
	static_cast<A::foo*>(0);
}


For some reason, the second static_cast has a red error underline. It only seems to appear when using a cast with a type inside a namespace (or better: when you use the :: operator, as it also applies to nested types)


Edited by - .oisyn on Jul 10 2006 07:00:13 AM

support
Whole Tomato Software

5566 Posts

Posted - Jul 10 2006 :  1:30:00 PM  Show Profile  Reply with Quote
Thanks, it will be fixed in 1531.
Go to Top of Page

.oisyn
Tomato Guru

162 Posts

Posted - Aug 04 2006 :  06:07:51 AM  Show Profile  Reply with Quote
By the way, I discovered this same bug also applies when casting to template typenames

template<class T> struct S
{
    void foo()
    {
        T * t = reinterpret_cast<T*>(0);
    }
};
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Aug 06 2006 :  2:56:44 PM  Show Profile  Reply with Quote
this is also fixed in 1531

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