Boost logo

Boost :

From: Victor A. Wagner, Jr. (vawjr_at_[hidden])
Date: 2002-08-15 22:13:56


At Thursday 2002/08/15 13:15, you wrote:
>No, there won't be any behavior because compilation will fail.

that is surprising, IMO.

I know the standard doesn't say anything, but I find it offensive that you
will be able to write:

someT = a[n];

but NOT

a[n] = someT

Well, with the language lawyers around I guess I should say:
that you can write without compilation error:

>-----------------------------------------------------------
> David Abrahams * Boost Consulting
>dave_at_[hidden] * http://www.boost-consulting.com
>
>
>----- Original Message -----
>From: "Victor A. Wagner, Jr." <vawjr_at_[hidden]>
>To: <boost_at_[hidden]>
>Sent: Thursday, August 15, 2002 12:00 PM
>Subject: Re: [boost] Iterator adaptors return a value from operator[]?
>
>
> > At Thursday 2002/08/15 07:02, you wrote:
> > >http://www.boost.org/libs/utility/iterator_adaptors.htm#4
> >
> > isn't this going to cause some unexpected/surprising behavior when
>someone
> > tries:
> >
> > a[n] = someT;
>
>
>_______________________________________________
>Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Victor A. Wagner Jr. http://rudbek.com
PGP RSA fingerprint = 4D20 EBF6 0101 B069 3817 8DBF C846 E47A
PGP D-H fingerprint = 98BC 65E3 1A19 43EC 3908 65B9 F755 E6F4 63BB 9D93
The five most dangerous words in the English language:
               "There oughta be a law"


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