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
 VAX 1524: refactoring: move implementation/3
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 20 2006 :  5:45:09 PM  Show Profile  Reply with Quote
(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()
 {
   {
   }
 }



jpizzi
Tomato Guru

USA
642 Posts

Posted - Jun 20 2006 :  8:45:00 PM  Show Profile  Reply with Quote
The problem is the extra set of parenthesis? The syntax looks fine to me.

Joe Pizzi
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 20 2006 :  8:48:35 PM  Show Profile  Reply with Quote
Yeah, it adds curly brackets for every level of class/struct. Syntactically it is still correct.
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jun 20 2006 :  9:00:06 PM  Show Profile  Reply with Quote
case=1410

Joe Pizzi
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