|
Boost : |
From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-09-25 05:15:16
>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.
Yep, that looks good, maybe <boost/ctype.hpp> would be a good place for
this, then anyone needing ctype in boost code can just include it and get
the workarounds when needed.
The only issue I can see is that if someone includes <ctype.h> after a
boost header that uses that workaround, then they would be surprised to
find the global ctype declarations have gone completely - no macro and no
function in global namespace :-(
- John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk