Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Move Scope functionality in C++11 broken

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
MrDoomMaster Posted - Aug 18 2015 : 09:52:04 AM
C++11 introduced brace-or-equal initialization. So consider a class like below:

class foo
{
public:
  int m_member1{};
  bool m_member2{};
};


Both members above are value initialized. However, these are not new scopes. However, because a matching pair of curly braces are present, the Next/Previous scope navigation stops at these variables. They should not stop here, as they are not scopes.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Aug 18 2015 : 1:30:39 PM
I am seeing the same effect here:

case=91459

Thank you for the feedback.

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