Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-04-19 13:14:51


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Michael Fawcett
> Sent: Wednesday, April 19, 2006 10:09 AM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [weak_ptr] thread safe?
>
> On 4/19/06, John Wilkinson <jwilkinson_at_[hidden]> wrote:
> > There is a pragma in VC6 that will activate or deactivate
> optimization.
> > It can be used to wrap optimization-sensitive blocks of
> code. I do not
> > remember what it is, though, and I do not have VC6 handy.
> I have used
> > it, and it did alleviate an optimization-related bug.
>
> >From the MSDN:
>
> #pragma optimize( "[optimization-list]", {on | off} )
>
> Specifies optimizations to be performed on a function-by-function
> basis. The optimize pragma must appear outside a function and takes
> effect at the first function defined after the pragma is seen. The on
> and off arguments turn options specified in the optimization-list on
> or off.

I'm curious, why couldn't this be a compiler workaround in weak_ptr?


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