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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -