From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-11-29 14:40:01
From: "Mac Murrett" <mmurrett_at_[hidden]>
> > No. It is common to introduce types that support only some
> > of the available operations on built-in types. Think of
> > iterators. I find ++ and -- to be the most natural C++
> > expression of the counter concept.
> I agree with this, but also with what Bill has been saying all along.
> However, the idea of a type being threadsafe is a little silly to me.
Why? I don't see anything silly with the idea that an instance of class X is
> Rather, why not have generic functions such as:
> template<class Int>
> void increment_atomic(Int &rValue);
What are you going to (portably) do with this function? You don't know which
'Int', if any, works on the current platform.
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk