N
Niels Dekker - no reply address
We have some using-declarations and using-directives at file scope (in a CPP
file, right after the #include statements). Does it matter much if they are
places in an unnamed namespace instead? I mean, does it make any difference
(file scope versus unnamed-namespace)?
For example:
#include "my_things.h"
#include <memory>
namespace // unnamed
{
using ::std::tr1::shared_ptr;
using namespace my_things;
}
// Using shared_ptr and things from my_things here...
Kind regards,
Niels
file, right after the #include statements). Does it matter much if they are
places in an unnamed namespace instead? I mean, does it make any difference
(file scope versus unnamed-namespace)?
For example:
#include "my_things.h"
#include <memory>
namespace // unnamed
{
using ::std::tr1::shared_ptr;
using namespace my_things;
}
// Using shared_ptr and things from my_things here...
Kind regards,
Niels