Boost logo

Boost :

From: John E. Potter (jpotter_at_[hidden])
Date: 2001-06-07 06:59:31


On Thu, 7 Jun 2001, David Abrahams wrote:

> Here's a new LWG issue, I think. Please check for reasonableness, as I am
> sick.

Wishing you a much faster recovery than output_iterator.

> Table 73 is confusing at best:
>
> "a = t is equivalent to X(a) = t." ***

[...]

> Worse yet, it appears to be suggesting that the output iterator should have
> a member function of the form
>
> operator=(const T&) const // note final const!!
>
> Since the expression X(a) creates a temporary.

Not a problem for a language with modifiable rvalues. Operator= is
a member.

John


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