From: Bronek Kozicki (brok_at_[hidden])
Date: 2006-07-05 17:40:25
Peter Dimov wrote:
> How does your compiler help you spot duplicate tags?
compiler (or actually language) provides tools to organize names in open
(namespaces) or closed (nested types) hierarchies. These tools so far worked
rather well, allowing users to define unique names (where sane design and
source code organization are in place).
Of course, if you do not want to use these tools, you do not have to. For
incomplete types it's OK to redeclare tag whenever you want to use it, and
it's almost no different that using literals (although slightly annoying and
one has to be careful of scope). However, once you want to organize names,
tags have many advantages over strings. I tried to explain these advantages in
previous messages. I believe that users will want to organize tags in all but
most trivial projects, as exceptions handling begs for such organization due
to its distributed nature.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk