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 classes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tailsu
Senior Member

37 Posts

Posted - Sep 14 2007 :  08:43:47 AM  Show Profile  Reply with Quote
Suppose you have:

template <class T=void>
class X
{
void Foo();
};

CI on Foo generates:

template <class T=void>
void X<T>::Foo()
{

}

which is incorrect C++ code since default template parameters are allowed only in the declaration of classes, not in methods.

The =void part should not be there.

Edited by - tailsu on Sep 14 2007 08:45:04 AM

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Sep 14 2007 :  09:47:13 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=2948

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Apr 25 2013 :  2:31:57 PM  Show Profile  Reply with Quote
case=2948 is fixed in build 1936
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