Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Code Inspection Syntax Error with = default

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
pwc Posted - Mar 25 2018 : 4:23:53 PM
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;

3   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Jul 13 2018 : 2:51:02 PM
case=115351 is fixed in build 2283.
accord Posted - Mar 26 2018 : 06:01:04 AM
I am seeing the same effect here. Thank you for the clear description.

case=115351
pwc Posted - Mar 25 2018 : 4:28:08 PM
This is with build 2258 using VS2017.

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