// -- .h
namespace A
{
struct Foo
{
}
} // namespace
// -- .cpp
namespace A
{
void Foo::Bar()
{
}
} // namespace
choosing "Create Declaration" for Foo::Bar, the following prototype is added to the header:
struct Foo
{
void Foo::Bar();
}
expected declaration:
struct Foo
{
void Bar();
}
affects VC9, VC6, build 1735 and earlier builds.