
"Jonathan Turkanis" <technews@kangaroologic.com> wrote in message news:chsujj$85u$1@sea.gmane.org...
"David Abrahams" <dave@boost-consulting.com> wrote in message news:ullfibawd.fsf@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