Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 [1731] Unrecognized template parameters

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
wlater Posted - Sep 03 2009 : 11:58:09 AM
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.

2   L A T E S T    R E P L I E S    (Newest First)
wlater Posted - Sep 04 2009 : 12:52:07 AM
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.
accord Posted - Sep 03 2009 : 6:06:30 PM
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.

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