Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2004-01-23 06:22:26

Andy Little wrote:
>>PS To Daniel Frey - typeof is fine by me - provided versions can be
>>provided for all the recent main compilers. (For the obselete
>>compilers we could just provide the C Macro values).
> Does VC7.1 do typeof ?
> Is typeof standard C++?

typeof is not yet standard, but something like that will be in the next
standard version (at least I'd bet on it, although I'm not the person to
make such claims ;). Maybe it will be called decltype, but that doesn't
really matter.

Most modern compilers implement it today, both the recent versions of
Intel and GCC have it available as __typeof__. Those are my test
platforms. The VC7.1 gave an "internal compiler error" last time my code
was checked on it. As I don't have it myself, I can't do much about it
as long as no one steps in and helps. If you are interested, drop me a
mail :)

Regards, Daniel

PS: Someone raised objections on the compile-time overhead for the
constant library (and I'm too lazy to search who it was ;). Yes, I admit
there is some, but it is *far* from what the unit libraries do. I also
payed attention to it in the design of the library itself. However many
constants you define, the set of operators doesn't grow. This should
keep the compiler requirements low, but I guess we'll have to do some
benchmarking once the library itself is reasonably stable.

Daniel Frey
aixigo AG - financial solutions & technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web:

Boost list run by bdawes at, gregod at, cpdaniel at, john at