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
 [1731] Unrecognized template parameters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

wlater
Senior Member

USA
35 Posts

Posted - Sep 03 2009 :  11:58:09 AM  Show Profile  Reply with Quote
I found this possible problem/limitation with 1731 but it may have been there in earlier versions. When using #defines for long lists of template parameters, VAX does not recogize any of the parameters as valid symbols. Here is a simplified example.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 03 2009 :  6:06:30 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=31857

Although you made a little typo:

#define PARAMS Param2

should be

#define PARAMS P

Since you used "int P" as the template argument in Test case 2. I never separate template class member definitions from the declarations so it have taken a while to figure out the problem (why doesn't it compile). But certainly, you have done the hard part of the work. The essential is on the screenshot.

Edited by - accord on Sep 04 2009 3:01:22 PM
Go to Top of Page

wlater
Senior Member

USA
35 Posts

Posted - Sep 04 2009 :  12:52:07 AM  Show Profile  Reply with Quote
Whoops, sorry about the P typo. I actually meant to type:
#define TYPES int Param2
I go back and forth whether to separate the definitions or not. For fairly short templates I don't. For the longer ones I usually do.
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