------- Comment #9 from bkoz at gcc dot gnu dot org  2006-09-04 15:22 -------

> Furthermore, defining _Tag in an anonymous namespace will cause the compiler 
> to
> give all functions with _Tag in their signature internal linkage.  I don't
> understand why you would want this.

This is precisely one reason why anonymous namespaces are useful. It provides a
very viceral way to sanity check an API. Make sure that the private parts
really are private, say.

Please, let's leave <rope> out of it.

I think that there are good reasons to use anonymous namespaces in headers,
even if you disagree with these designs personally.


-benjamin


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28514

Reply via email to