Boost logo

Boost Users :

From: Alain Cormier (alain.work_at_[hidden])
Date: 2006-04-19 14:42:29


I have tried the #pragma optimize and it doesn't resolve my problem :(.
Although, that would had been a clean solution.

On 4/19/06, Sohail Somani <s.somani_at_[hidden]> wrote:
>
> > -----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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

--
Alain Cormier
alain.work_at_[hidden]
Alain.Cormier_at_[hidden]
job   : +1 (450) 679-9542 x238
cell. : +1 (514) 730-1394


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