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
 VAX 1229: "typename" coloring bug
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Apr 14 2004 :  11:59:41 PM  Show Profile
When using typename for a template class instead of class (which are semantically equivalent), then the type is colored as a variable, not as a type.
e.g.:
template<typename TRootCreator, typename TInterface=CComQIPtr<IUnknown, &IID_IUnknown> >
class CGenericNode : public CDelegationBase
{
};
Here, TRootCreator and TInterface are both colored in grey. Replacing typename with class, then both are colored in blue.

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Apr 15 2004 :  12:01:53 AM  Show Profile
Interestingly, when I replace only the first typename with class, the second is also colored correctly in blue...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000