Question.2
A developer puts using namespace UART; in a header file:
// driver.h using namespace UART; void configure(); // Which init() does this call?
What is the problem?
Select Answer
No problem -- using namespace in headers is standard practice
using namespace
Every file that includes driver.h gets UART names dumped into its scope -- causing collisions with identically named functions in other namespaces
driver.h
namespaces
using namespace does not work in headers
Only a problem if UART namespace is very large