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
Topic
tailsu
Senior Member
37 Posts
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)
{
}
feline
Whole Tomato Software
United Kingdom
19004 Posts
Posted - Oct 05 2007 : 4:41:24 PM
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
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Visual Assist
Technical Support
Feature Requests
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
© 2023 Whole Tomato Software, LLC
Snitz Forums 2000