Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2001-09-23 11:19:51


On Sunday, September 23, 2001, at 12:04 PM, Darin Adler wrote:

> I used an even simpler workaround:
>
> inline int (isspace)(int x) {return isspace(x);}
> #undef isspace
>
> The parentheses around the name of the function are legal, and they
> prevent
> the isspace() macro from expanding. I do put this in the std namespace.

Yup, I like that even better! :-)

-Howard


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