Add implementation - namespace inconsistency
Posted: Mon Jul 01, 2013 7:28 pm
Okay, it's not strictly a bug but inconsistency with class wizard.
I create a class in namespace and I get:
test.hpp
test.cpp
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.
I create a class in namespace and I get:
test.hpp
Code: Select all
namespace abc
{
class test
{
test();
foo();
};
}
Code: Select all
#include "test.hpp"
namespace abc
{
test::test()
{
}
}
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.