Re: Synopsis Question
David Abrahams <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Stefan Seefeld <[email protected]> writes: > Luke Petre wrote: > >> Ok, so I looked at the ErrorHandler.cc problem again. Here is a >> shorted version of the code, I added comments to the offending bits: > > Thanks for looking into this ! Does the file compile if you simply > replace '::callback' by 'callback' everywhere, i.e. don't qualify > 'callback' any more ? Not the best idea; that will allow argument dependent lookup to take effect. However, if you replace ::callback by (callback) [yes, really] it should work. >> If I change the offending code to: > > [...] > >> Now there aren't any anonymous namespaces. Everything is living >> happily under the Synopsis namespace. > > That's right, but that defeats the purpose of the anonymous namespace to > deliberately hide the symbols it declares from the outside. ?? I haven't been watching this thread carefully, but last time I checked anonymous namespaces don't hide anything from anybody. -- Dave Abrahams Boost Consulting www.boost-consulting.com