I think that the best solution for this problem is to have a corresponding directory for each namespace. That is, having two namespaces, nsx and nsx::nsy, and two classes nsx::c1 and nsx::nsy::c1, the resulting filesystem heirarchy will be:
Qt Code:
  1. nsx/
  2. nsy/
  3. c1.cpp
  4. c1.cpp
To copy to clipboard, switch view to plain text mode 
This way the namespaces will be kept in sync with the directory structure.