C++: Should I use ‘typedef’ or ‘using namespace’? [closed]
The two options you state are not equivalent. This one: using namespace project1::namespace1; pulls in everything from the namespace, giving you little control and making clashes likely. I see only cons, and no pros here. But you don’t need to use a typedef to bring in a single symbol, you can use using project1::namespace1::class1; Whether …