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
 [1731] Create From Usage: initialisation list
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Maxim
Ketchup Master

59 Posts

Posted - Aug 20 2009 :  10:27:08 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 20 2009 :  2:03:16 PM  Show Profile  Reply with Quote
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.

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

support
Whole Tomato Software

5566 Posts

Posted - Nov 12 2010 :  3:34:23 PM  Show Profile  Reply with Quote
case=31277 is fixed in build 1836

Whole Tomato Software, Inc.
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