Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Refactor:MITS vanishes in this case

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
peterchen Posted - Aug 11 2006 : 10:18:50 AM
code:

struct COuter
{
struct CLayout { };
CLayout const & GetLayout()
{
}
};

Refactor does not offer "Move Implementation to source" on GetLayout.
When return type is changed to CLayout & (or CLayout), it is available.

4   L A T E S T    R E P L I E S    (Newest First)
support Posted - Aug 27 2006 : 7:17:06 PM
Fixed in build 1533.
jpizzi Posted - Aug 14 2006 : 9:58:44 PM
Likely, it is the placement of the const that is confusing VA, not the existence of it. Most often, I have seen the syntax done as follows:
struct COuter
{
struct CLayout { };
   const CLayout& GetLayout()
   {
   }
};
peterchen Posted - Aug 14 2006 : 05:38:41 AM
It's legal to the best of my knowledge (And I do it very frequently to group complex settings)
feline Posted - Aug 13 2006 : 4:19:51 PM
my first reaction was "you cannot do that, can you?" i am familiar with doing this with pointers, but i dont thing i have ever seen it done with a reference before. still it compiles, and makes sense when you think about it.

remove the const and Move Implementation to Source File becomes available.

case=2058

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