On Thu, Mar 13, 2003 at 01:27:16PM +0200, Tuomo Valkonen wrote:
> There's no "friend namespace", is there?-)

Not as far as I know, but the class MyLittleHelper stuff I posted has almost
the same effect except that you have to declare everything in the class as
well as provide an implementation.

> Does g++ still not support namespaces?

g++ supports namespaces very well. Generally C++ support in g++ is
excellent, although you might hurt yourself if you try to use too many
templates in pre 3.0 versions.

There use to be a table on the web showing which C++ compilers supported
which parts of the standard, but I can't find it. However, the Boost library
stress tests C++ compilers nicely. By looking at its configuration header
files we can see what's suported and what's not.
GCC:    http://www.boost.org/boost/config/compiler/gcc.hpp
Visual C:       http://www.boost.org/boost/config/compiler/visualc.hpp
[The above have a mime time of application/octet-stream to enourage your
browser to save them to disk rather than open them in your browser window.
Don't worry -- they are just text files]
Macros are explained on http://www.boost.org/libs/config/config.htm.
>From this we see that
gcc < 2.97 doesn't support member template friends or operators in
namespaces, but otherwise it's complete.
gcc >= 2.97 seems to support everything

Why not just make everything public?

Hope this helps,

Tom

Reply via email to