Hi Razmig,
"Razmig K" <st*********@postmaster.co.uk> wrote in message
news:3c**************************@posting.google.c om...
| This is a small survey for C++ programmers to speak their mind about
| the uses and/or potential advantages and disadvantages resulting from
| the use of the aforementioned C++ feature in ralistic code in various
| programming domains.
I *always* use an anonymous namespace around small utility classes
(e.g. predicates and functors for STL algorithm calls) defined in
an implementation (.cpp) file. This is the easiest and the only safe
way to avoid name clashes in C++.
For isolated internal functions and global variables (if ever...),
I may still use 'static' instead of an anonymous namespace.
In spite of it being deprecated -- old habits die hard...
(and using 'static' helps portability to older & C compilers).
Realistic code: absolutely
Programming domain: from embedded/RT SW to Mloc OO/GUI applications.
Cheers,
Ivan
--
http://www.post1.com/~ivec <> Ivan Vecerina