Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2007-07-27 15:49:37


On Jul 27, 2007, at 3:10 PM, Arkadiy Vertleyb wrote:

> "Doug Gregor" <dgregor_at_[hidden]> wrote
>
>> I have updated the Boost Config library (on the CVS trunk)
>> to contain BOOST_HAS_DECLTYPE, indicating the presence of decltype. A
>> sufficiently-motivated person could certainly use this macro to give
>> a simple implementation of decltype for C++0x compilers...
>
> Could you ellaborate? It's not quite clear how to implement
> decltype on
> compilers that don't have it... which means on any compiler other
> than the
> latest gcc that you mentioned... or am I missing something?

I meant, why not have the typeof library use decltype when it is
available? You can just predicate on BOOST_HAS_DECLTYPE, and of
course test with the latest GCC 4.3.

        - Doug


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