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
 Refactoring:Extract Method dot (.) intead of (::)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pa3k
Starting Member

Slovakia
1 Posts

Posted - Aug 10 2006 :  03:47:47 AM  Show Profile  Reply with Quote
Hello,

when I try in this simple example Refactor->Extract Method (for lines between --> and <--), then
I get wrong signature of extracted function, instead of fs::path I get wrong function signature like fs.path.

VAX proposes function signature
fs.path MyMethod(fs.path root_dir)

when it should be
fs::path MyMethod(fs::path root_dir)

the environment:
VS.Net 2005
VAX.dll: 10.3.1531.0 built 2006.08.04



#ifndef __EXTRACT_METHOD_BUG
#define __EXTRACT_METHOD_BUG

//#include <boost/filesystem/path.hpp>
//namespace fs = boost::filesystem;

namespace fs
{
    class path
    {
    };
}

class extract_method_t
{
public:
    extract_method_t ()
    {
        fs::path root_dir ("c:/");
        //! --> extract method
        root_dir = root_dir / "ddd";
        //! <-- extract method
    }
};
#endif __EXTRACT_METHOD_BUG

Edited by - pa3k on Aug 10 2006 04:32:58 AM

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 12 2006 :  5:09:08 PM  Show Profile  Reply with Quote
confirmed, thank you for the very clear example.

case=2051

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Aug 27 2006 :  7:14:28 PM  Show Profile  Reply with Quote
Fixed in build 1533.
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