Boost logo

Boost :

From: williamkempf_at_[hidden]
Date: 2001-05-23 16:22:07

--- In boost_at_y..., Douglas Gregor <gregod_at_c...> wrote:
> On Wednesday 23 May 2001 13:21, you wrote:

> Perhaps not in a first release of the threads library, but one
could use
> expression templates to make "i = (i+2)/2" safe. Delay evaluation
until an
> assignment operation is reached. On assignment it acquires a lock,
> the evaluation and assignment, and then releases the lock.

That's an interesting idea. Definately something for someone to look
into at some point, but as you say, not appropriate for a first
release (or a second, or a third...).

Bill Kempf

Boost list run by bdawes at, gregod at, cpdaniel at, john at