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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -