Page 1 of 1

Add implementation - namespace inconsistency

Posted: Mon Jul 01, 2013 7:28 pm
by netrick
Okay, it's not strictly a bug but inconsistency with class wizard.
I create a class in namespace and I get:

test.hpp

Code: Select all

namespace abc
{
class test
{
    test();
    foo();
};
}
test.cpp

Code: Select all

#include "test.hpp"
namespace abc
{
    test::test()
    {
    }
}
When I click "add implementation" for foo(), it wants to create function "abc::test::foo()" and place it outside namespace.
Of course it's easy to remove the namespace while editing function body and ctrl-x ctrl-v it into namespace, but I think that code generation and class generation should be consistent. (both should place function inside the namespace in .cpp file, like constructor and destructor are placed by wizard).

Just a suggestion to make codelite even better and more polished.