Boost logo

Boost :

From: Alex Chovanec (achovane_at_[hidden])
Date: 2004-09-12 06:07:06


"Jonathan Turkanis" <technews_at_[hidden]> wrote in message
news:chsujj$85u$1_at_sea.gmane.org...
>
> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:ullfibawd.fsf_at_boost-consulting.com...
> >
> > Don't you think it's time we generalized the hack into a nice macro
> > that generates the right code?
>
> I think so. In addition to prefix and postfix unary operators, there
should be a
> binary version, too, right?
>
> Jonathan

I have just posted macros for unary operators like the ones you describe.
Check out the 'is_dereferenceable' folder in the YahooGroups Files section.

The three metafunctions that I described earlier can now be generated in a
single line of code:

    BOOST_IS_XXXABLE_PREFIX(dereference, *)

I think that the macros for the binary operators will only be slightly more
difficult to implement.

Thanks,

Alex


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