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 and defaulted functions

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
tony.riviere Posted - Dec 19 2018 : 04:19:28 AM
When launching "Create Implementation" on a class, if a special function (constructors / destructor) is defaulted not within the class declaration but outside then VAX does not detect that the implementation is already defined.

In the following code, both constructors are defined: the default constructor is defaulted in the .cpp and the copy constructor is defaulted within the class declaration. So normally VAX shouldn't propose any "Create Implementation" but it still propose to create the default constructor which is a bug.
// .h
struct Dummy
{
	Dummy();
	Dummy(const Dummy&) = default;
};

// .cpp
Dummy::Dummy() = default;


2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 05 2019 : 6:26:24 PM
case=104654 is fixed in build 2316.
feline Posted - Dec 19 2018 : 08:35:12 AM
I am seeing the same problem here, thank you for the clear description:

case=104654

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