I have debugged a while, and found that for the code:
using namespace foo;
fooClass::fooClass() //************ONE************
{
}
fooClass::~fooClass()
{
}
When we are here in the ONE place, we try to find the "fooClass" in the global namespace, so this was not correctly. at least we should try to consider the scope invoked by the using statement:
I think I have answered this kind of question several months ago.
But currently, it was quite complex to do this.
I suggest you can use this way:
namespace foo // open the foo namespace
{
fooClass::fooClass() //************ONE************
{
}
fooClass::~fooClass()
{
}
} close the namepsace
this should works.