Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Refactoring:Extract Method dot (.) intead of (::)

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
pa3k Posted - Aug 10 2006 : 03:47:47 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Aug 27 2006 : 7:14:28 PM
Fixed in build 1533.
feline Posted - Aug 12 2006 : 5:09:08 PM
confirmed, thank you for the very clear example.

case=2051

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