Boost logo

Boost Users :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2007-06-07 21:53:16


Hi Boris,

On Jun 7, 2007, at 12:23 AM, Boris wrote:

> On Thu, 07 Jun 2007 09:34:32 +0900, Douglas Gregor
> <doug.gregor_at_[hidden]>
> wrote:
>
>> The code supporting this feature was accidentally disabled for VC++
>> in Boost 1.33.1. This oversight was fixed in Boost 1.34.0.
>
> Oh, thanks, good to know. Is there anything I can do about it (like
> setting a preprocessor directive to enable the feature)? Or is it
> something more difficult to change in the headers? I wonder as while I
> plan to upgrade to Boost 1.34.0 in the future I'm not yet ready to
> do so.

It's actually really easy to fix. If you poke through the headers in
boost/function and boost/function/detail, you'll find a couple
references to a mysterious constant 0x1700 in some BOOST_WORKAROUND
uses... change that to "1300" (decimal, not hex) and it should enable
this feature.

        - Doug


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net