This may be a duplicate but I didn't see exactly similar question.
Does a using namespace declaration stops at the end of it's source file if not written in header ?
foo.cpp
using namespace foo; // will this using namespace's scope end at the end of this file?
some random code...
or do we need to create a scope ?
bar.cpp
{
using namespace bar;
some random code...
}