Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Create Implementation and defaulted functions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ketchup Master

52 Posts

Posted - Dec 19 2018 :  04:19:28 AM  Show Profile  Reply with Quote
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(const Dummy&) = default;

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

Whole Tomato Software

United Kingdom
17995 Posts

Posted - Dec 19 2018 :  08:35:12 AM  Show Profile  Reply with Quote
I am seeing the same problem here, thank you for the clear description:


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

Whole Tomato Software

2817 Posts

Posted - Feb 05 2019 :  6:26:24 PM  Show Profile  Reply with Quote
case=104654 is fixed in build 2316.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000