namespace Foo { struct Base { virtual ~Base() {} }; } namespace Foo { void bar( virtual Base& x); } namespace Foo { void bar_( Base& x) { } }