
On 6/27/2010 2:16 PM, Peder Holt wrote:
2010/5/11 Eric Niebler <eric@boostpro.com>
1) Some compilers don't support typeof in any form, even emulated. From looking at typeof.hpp, it looks like just #include'ing typeof.hpp on those compilers results in a hard error. I'd like a way to test whether typeof is supported and use it if so, otherwise do something else. How can I do that?
Sorry for the long delay. I have checked in a fix for this. If you include the typeof header on a compiler not supporting typeof emulation (read: Borland compilers), BOOST_TYPEOF_EMULATION_UNSUPPORTED will be defined. BOOST_TYPEOF(Expr) will expand to boost::type_of::typeof_emulation_is_unsupported_on_this_compiler
Great! Thanks Peter. -- Eric Niebler BoostPro Computing http://www.boostpro.com