If you want to put "using namespace" inside a header file, why not do it in the following way?



#ifndef FOO_H
#define FOO_H
#include "bar.h"

namespace foo
{