Boost logo

Boost :

From: Peder Holt (peder.holt_at_[hidden])
Date: 2007-08-20 09:10:49


2007/8/20, Joseph Gauterin <joseph.gauterin_at_[hidden]>:
> > 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
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk