IDE: Visual Studio 2010
VAX: 10.6.1856
Create implementation does not work correctly when the return type is wrapped in a nested namespace and you do not explicitly scope the outer namespace.
Code in a header file:
namespace NS_1
{
namespace NS_2
{
enum Bar
{
_1
};
}
class Widget
{
NS_2::Bar func();
};
}
When you try to create the implementation you will get the following generated in the source file:
NS_2::Bar NS_1::Widget::func()
{}
The return type needs to be NS_1::NS_2::Bar.
It works fine if you were to change the signature of func() to:
NS_1::NS_2::Bar func();