c++ - Multiple files, same namespace -


i building library consists of many different classes , files related thinking putting them in same namespace idea; allows me use less risky generic/simple class names since name collision inside namespace not issue.

is process of using same namespace many different files simple putting classes inside same-named namespace?

 classa.h, classb.h, classc.h, etc contain this:  namespace whatever{  ...class definition } 

yes can surely move ahead idea. if use same namespace name in different files automatically clubbed one.


Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -