Boost logo

Boost :

From: Pavel Chikulaev (pavel.chikulaev_at_[hidden])
Date: 2005-06-04 22:19:13


"Arkadiy Vertleyb" <vertleyb_at_[hidden]> wrote in message
news:d7teeg$tbk$1_at_sea.gmane.org...
> "Pavel Chikulaev" <pavel.chikulaev_at_[hidden]> wrote
>
>> I've got a small feature request to type_of library:
>>
>> 1) BOOST_TYPEOF_CONSTANT_COMPLEXITY Macro
>> is defined if typeof can evaluated with constant complexity
>> 2) BOOST_TYPEOF_LINEAR_COMPLEXITY Macro
>> is defined if typeof can evaluated with linear complexity
>
> Not sure I fully understand this...
read "can't" as "can be" and you'll understand :)

> The complexity of typeof is constant if either native __typeof__ or MSVC
> trick (by Igor Chesnokov) is used. In this case also no registration is
> required. In this mode BOOST_TYPEOF_NATIVE is defined.
>
> If emulation is used, the complexity of typeof is (almost) linear,
> registration is required, and BOOST_TYPEOF_COMPLIANT (probably should be
> changed to BOOST_TYPEOF_EMULATION) defined.
>
> Is this what you meant or did you have something else in mind?
Yeah, that's enough for me, thanks!

--
Pavel Chikulaev 

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