I just updated boost to version 1.48.0 on a project i am developing on OSX Lion that also includes the Cocoa headers. After doing so I got a load of errors all pointing to has_p
Reposting from comments since this apparently is the answer...
It seems Cocoa.h
is directly or indirectly defining a macro with the same name as one of the identifiers used in the Boost code. I.e., Cocoa.h
is defining a macro named Lhs
or Rhs
or has_operator
or some other equally terrible macro name, and it's conflicting with the proper identifiers in use in the Boost code.
If you'd like to contribute to getting this fixed in a future version of Boost, please narrow down the offending macro name(s) and submit a bug report on Boost Trac.