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 with defaults.

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
selalerer Posted - Jan 12 2012 : 10:36:56 AM
Hi.

If I have a template with default type parameters, e.g.:

template <typename T = int>
struct MyClass
{
void foo();
};

When I right click foo() and select Create Implementation this is what I get:

template <typename T = int>
void
MyClass::foo()
{
}

Which doesn't compile (because of the = int).

Will appreciate it if this will be fixed.

I'm using version:
Version 10.6.1862.0 built 2011.12.13

Thank you,
selalerer
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 12 2012 : 11:05:24 AM
I am seeing the same effect here. Thank you for the clear description. This appears to be covered by:

case=2948

Hopefully removing the unwanted default parameter from the implementation is not to much fuss, and this is still quicker than typing the implementation manually.

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