Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 [1731] Create From Usage: initialisation list

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
Maxim Posted - Aug 20 2009 : 10:27:08 AM
class Bar;

class Foo
{
	Foo(Bar& bar)
	: m_bar(bar)
	{}
};

m_bar is undefined; Create From Usage only offers to create a method, which I'm pretty sure doesn't make sense in this context. Change it to:
class Bar;

class Foo
{
	Foo(Bar& bar)
	{
		m_bar = bar;
	}
};

...and the refactoring offers to make a member.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Nov 12 2010 : 3:34:23 PM
case=31277 is fixed in build 1836
feline Posted - Aug 20 2009 : 2:03:16 PM
I am seeing the same effect here. Thank you for the clear description.

case=31277

This is a good catch, this is a case I had not thought of, but it is obvious when I see it.

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