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.