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
 VA X 1210: coloring bug with templates
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jan 12 2004 :  11:30:25 PM  Show Profile
When you have a template class which takes a bool as argument, you may end up writing code like:
myclass<(varX <= 10)> varY; // when varX less or equal 10
myclass<(varX >= 10)> varY;

In both cases, VAX treats the operator wrongly and colors varY in black as unknown symbol.

One may have the same problem with other types of templates too. As soon as you use any of the angle bracket operators inside a template instantiation.
  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