Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1526: cast operators underlined with namespaces

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
.oisyn Posted - Jul 10 2006 : 06:50:35 AM
#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)

3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 06 2006 : 2:56:44 PM
this is also fixed in 1531
.oisyn Posted - Aug 04 2006 : 06:07:51 AM
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);
    }
};
support Posted - Jul 10 2006 : 1:30:00 PM
Thanks, it will be fixed in 1531.

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