$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [typeof] 2 questions
From: Eric Niebler (eric_at_[hidden])
Date: 2010-05-11 10:48:37
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?
2) I can't find "decltype" by grepping the typeof code. Why doesn't
typeof use the decltype keyword on compilers that support it?
And I lied. I have another question. How expensive at compile-time is
emulated typeof?
TIA,
-- Eric Niebler BoostPro Computing http://www.boostpro.com