More Mac Compiler Woes - Boost 1.30.0 - Thread and type_traits

Hey guys,
I am having some more problems getting Boost 1.30 to compile on the Mac.
I am using CW Pro 8.3, compiling a TARGET_CARBON project.
I am having trouble getting the MP implementation of threads to compile. It
seems to be having trouble with function pointers where the syntax
function<type> is used.
I remember at one point it was mentioned that:
function

fails. There is a define that goes into an alternate implementation for certain broken compilers. Perhaps CodeWarrior needs to be added to the
"Bobby Thomale"
of compilers that compiles the "broken compiler" version of the stuff in this header?
We are seeing the same problem trying to use tokenizer.hpp with CodeWarrior on the Mac. Again, errors in is_base_and_derived.hpp on lines that use type_traits. Here's an example: ******** Error : ')' expected (included from: object_traits.hpp:25 compressed_pair.hpp:23 compressed_pair.hpp:20 iterator_adaptors.hpp:124 token_iterator.hpp:15 tokenizer.hpp:21 Book.h:5 Archive.h:4 Archive.cpp:1) is_base_and_derived.hpp line 113 static type_traits::yes_type check(D const volatile *, T); ******** People do seem to be using boost with CodeWarrior on the Mac so surely we just need to tweak the correct setting, right? Somebody? -- Stephen W. Carson DirXion Software St. Louis, MO

This problem stems from the fact that the Metrowerks/mac header
debugging.h defines a macro named "check" which conflicts with the
function named check defined in the boost headers. Somewhere (in a
header wrapping debugging.h?) you need to undefine the "check"
macro.
- Mat
--On Monday, May 05, 2003 10:44 AM -0500 "Stephen W. Carson"

On Friday 11 April 2003 04:25 pm, Bobby Thomale wrote:
Sorry, I completely missed this message this first time around. For
CodeWarrior you'll need to use the functionN
Secondly, the Signals library is not compiling. It's actually not a Signals problem, I think it is a type_traits problem.
Odd. It sounds like a compiler problem, but our Win32 regression tests show Signals working properly with CodeWarrior 8.3. We don't have any regular regression testing for CodeWarrior on the Mac, unfortunately :( Doug

Ok. I have already made the changes locally. Do you want me to just send them to Bill then?
Huh. It is definitely broken - someone else posted about it earlier today, too. Well, I wasn't sure what to do about it. My thought was that CodeWarrior should be using the same "broken compiler workaround" that the other compilers were using. I will send you the change I made. It makes it compile all right but I have no idea if it is the right thing or not... (I don't exactly understand the type-traits source. :-) Are you the right person to take a look at it and (possibly) add it to the Boost sources? -- Bobby --------------------------------------------------------------------- Bobby Thomale Senior Software Developer Inoveon Corporation http://www.inoveon.com/ ---------------------------------------------------------------------

On Monday 05 May 2003 02:08 pm, Bobby Thomale wrote:
If you post it to the Boost developers list, (make sure "thread" is in the subject!), he'll see it.
Recent versions of CodeWarrior can handle it. I suggest trying the solution Mat Marcus proposed.
I can, but I'm not the best person for it. Doug
participants (5)
-
Bobby Thomale
-
Douglas Gregor
-
Mat Marcus
-
mmarcus7
-
Stephen W. Carson