So, I am looking to make my code cleaner. Here is what I have:
obj.hpp
class obj {
obj();
int return0();
};
obj.cpp
using namespace obj; //illegal!!
obj() { }
int return0()
{
return 0;
}
Basically, I think that writing obj::return0()...
is a bit redundant. This becomes trickier when I have sub-classes, where I do things like obj::child::child2::return0()...
Any ideas?