Boost logo

Boost Users :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2003-11-04 12:22:06

On Nov 4, 2003, at 10:11 AM, Bobby Thomale wrote:

>> 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<type, type...>
>> was deprecated and we were to use either the more universally
>> supported:
>> functionN<type,type...>
>> or the cleaner:
>> function<void myfuncSig()>
>> instead if our compiler supported it.
>> (Mine doesn't support that last one yet.)
>> I am guessing that the oldest syntax was removed and no one has
>> bothered to
>> update the Mac carbon thread implementaton to compile again since
>> then?
>> That one seems pretty easy to fix - just update to a supported syntax.
> ^ I've done that, updated to the functionN<type,type> syntax and it
> fixed
> the problem. I need to submit back the changes but I haven't yet.
> (SORRY!!!) Just let the compiler lead you around by the nose if you'd
> like,
> it will show you all of the places where this needs to change, and the
> change is straightforward. :-)

CodeWarrior 9 now supports the function<void myfuncSig()> syntax. You
can test for version 9 with:

#if __MWERKS__ >= 0x3200


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at