Boost logo

Boost :

Subject: Re: [boost] lockfree workaround for msvc compiler bug (was Re: Boost 1.61.0 Release Candidate 2)
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2016-05-11 13:06:27


On Wednesday, 11 May 2016 20:04:16 MSK Bo Persson wrote:
> On 2016-05-11 18:37, Andrey Semashev wrote:
> > On Wednesday, 11 May 2016 19:36:42 MSK Stephan T. Lavavej
> >
> > wrote:
> >> [Tim Blechmann]
> >>
> >>> we could add a release note:
> >>> Due to a bug in VS 2015 Update 2 boost.lockfree might
> >
> > trigger error C2338.
> >
> >> This is not a bug. I think I've explained this sufficiently.
> >
> > I think I agree with Tim on this. The code is valid according to
> > the standard, and the compiler rejects it.
>
> But it's not a bug if it is done on purpose.

The behavior contradicts the standard and therefore is a bug. The intention
doesn't matter.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk