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
 Code Inspection Syntax Error with = default
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pwc
Tomato Guru

138 Posts

Posted - Mar 25 2018 :  4:23:53 PM  Show Profile  Reply with Quote
Code inspection is leaving in ':' when converting the copy c'tor to use = default.



class Base
{
public:
    Base(const Base& other) {}
};

class Derived : public Base
{
public:
    Derived(const Derived& other) : Base(other) {}
};


Auto-fixing the Derived copy c'tor yields:


    Derived(const Derived& other) :  = default;

pwc
Tomato Guru

138 Posts

Posted - Mar 25 2018 :  4:28:08 PM  Show Profile  Reply with Quote
This is with build 2258 using VS2017.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 26 2018 :  06:01:04 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=115351
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jul 13 2018 :  2:51:02 PM  Show Profile  Reply with Quote
case=115351 is fixed in build 2283.
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