Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VAX 1524: refactoring: move implementation/3

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
Uniwares Posted - Jun 20 2006 : 5:45:09 PM
(vs2005, c++)

Classes in classes are a problem for this refactoring function:
class outer
{
  class inner
  {
    void test() {}
  }
};

Select refactoring/move implementation on test().
It will move it to the .cpp file as follows.

void outer::inner::test()
 {
   {
   }
 }



3   L A T E S T    R E P L I E S    (Newest First)
jpizzi Posted - Jun 20 2006 : 9:00:06 PM
case=1410
Uniwares Posted - Jun 20 2006 : 8:48:35 PM
Yeah, it adds curly brackets for every level of class/struct. Syntactically it is still correct.
jpizzi Posted - Jun 20 2006 : 8:45:00 PM
The problem is the extra set of parenthesis? The syntax looks fine to me.

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