Problem with boost/iterator_facade.hpp on HP-UX

Global namespace pollution strikes again. /usr/include/machine/reg.h defines a symbol R1, which messes up boost/iterator_facade.hpp. I'm not sure what the boost policy is on stuff like this, name change or #undef. I went with name change. I just changed all R1's to Ref1's and R2's to Ref2's (for consistency). If you'd like a patch, I can submit one, but its a pretty simple fix. Oh, and I'm using 1.32 Thanks, Tom

Thomas Matelich
Global namespace pollution strikes again. /usr/include/machine/reg.h defines a symbol R1, which messes up boost/iterator_facade.hpp. I'm not sure what the boost policy is on stuff like this, name change or #undef. I went with name change. I just changed all R1's to Ref1's and R2's to Ref2's (for consistency).
If you'd like a patch, I can submit one, but its a pretty simple fix.
Please do. -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
Thomas Matelich