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
 [1727] Problems with typename type variables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

.oisyn
Tomato Guru

162 Posts

Posted - Aug 13 2009 :  5:32:12 PM  Show Profile  Reply with Quote
template<class T> struct Foo
{
	typename T::type bar;
};

bar colors as a type, rather than as a member variable. Removing the typename fixes the coloring (but is obviously ill-formed C++)

Edited by - .oisyn on Aug 13 2009 5:32:46 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 14 2009 :  4:24:07 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=2057
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