Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create implementation for template methods.

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
tailsu Posted - Oct 05 2007 : 09:09:49 AM
Suppose you have the following class:

template <class T>
class foo
{
template <class U>
void bar(U u);
};

Create Implementation on bar produces the following code:

template <class U>
void foo<U>::bar(U u)
{

}
which is wrong.

The correct code should be:

template <class T>
template <class U>
void foo<T>::bar(U u)
{

}
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 05 2007 : 4:41:24 PM
I am seeing the same effect here. Thank you for the clear description.

case=5476

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