Boost logo

Boost :

Subject: Re: [boost] Is this a MSVC bug?
From: Andrzej Krzemienski (akrzemi1_at_[hidden])
Date: 2014-05-30 11:17:35


2014-05-06 17:06 GMT+02:00 Jonathan Wakely <jwakely.boost_at_[hidden]>:

> On 6 May 2014 15:55, Rob Stewart <robertstewart_at_[hidden]> wrote:
> > On May 6, 2014 9:37:33 AM EDT, Jonathan Wakely <jwakely.boost_at_[hidden]>
> wrote:
> >>On 6 May 2014 12:45, Andrzej Krzemienski wrote:
> >>>
> >>> Do you know if this a bug in VC++, or if that is supposed to be
> >>valid?
> >>
> >>It's valid, the reference should bind directly to global_i.
> >
> > In the code he provided, the assertion failure means that the address of
> the reference ii != the address of global_i. That's surprising.
>
> Maybe I misunderstood the exact question. Obviously it's surprising,
> because it's wrong, like I said "the reference should bind directly to
> global_i" i.e. it should not bind to a temporary.
>
> What I meant (but might have failed to say) is that the program is
> valid, and the assertion should not fail.
>
> I didn't mean VC++'s behaviour is valid.
>

Would that qualify for a C++03 defect macro in Boost.Config?


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