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
 Create implementation for template methods.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tailsu
Senior Member

37 Posts

Posted - Oct 05 2007 :  09:09:49 AM  Show Profile  Reply with Quote
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)
{

}

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - Oct 05 2007 :  4:41:24 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=5476

zen is the art of being at one with the two'ness
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