
2007/8/20, Joseph Gauterin <joseph.gauterin@googlemail.com>:
BOOST_TYPEOF reverts to native typeof on all compilers that support it. In addition, BOOST_TYPEOF is supported 'natively' on all VC compilers (ranging from VC6.0 to VC8.0), by utilizing a bug in the compiler. No registration is needed if you only target these platforms, and the compile time overhead on these compilers is negligible.
It's my understanding that as of MSVC8.0 the MS compiler no longer contains the bug used to implement typeof, so we don't get native typeof. I'm unsure about the status of the bug or native typeof in the next Visual Studio (Orcas?).
This is true for the official release, but not for the development branch. Steven Watanabe submitted a patch for BOOST_TYPEOF where he utilises a similar bug for VC8.0, enabling 'native' typeof for this compiler as well. Regards Peder
There may be considerable scope for improving this library if native typeof and variadic macros make it into C++0x. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost