I have the following H file:
namespace testnamespace
{
struct SomeType
{
};
SomeType add_foo( int op1, int op2 );
}
And the following CPP file:
namespace testnamespace
{
}
When I select "Create Implementation" on the function prototype add_foo(), I get the following changes to my CPP file:
namespace testnamespace
{
testnamespace::SomeType add_foo( int op1, int op2 )
{
}
}
The part colored in red should NOT be generated in the final implementation created. Since the function implementation was created *inside* of the namespace scope, it's redundant to place the namespace before the return type.
I'm sure this has been reported before, but I just wanted to make sure that the problem is known.
Thanks!