Boost logo

Boost :

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

"Jonathan Turkanis" <technews_at_[hidden]> wrote in message
> "David Abrahams" <dave_at_[hidden]> wrote in message
> >
> > 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.



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