Boost logo

Boost :

Subject: Re: [boost] [xint] Boost.XInt formal review (concrete complaint)
From: Ivan Le Lann (ivan.lelann_at_[hidden])
Date: 2011-03-07 12:54:17


----- "Peter Dimov" <pdimov_at_[hidden]> a écrit :

> Ivan Le Lann wrote:
>
> > Useless sarcasm aside, isn't that an abuse of atomics?
>
> Reference counting an abuse of atomics? It's one of the primary use
> cases for them.
>

I was not challenging the fact to use atomics to refcount.
I was challenging the "Let's refcount since it can be atomic!".
Atomics are a heavy dependency, and they're not free.
In the end, that's still about challenging COW.

Point is I'd hate to hear in a few years that C++ is "that language
where you have to do atomics to add two 512bits integers".

But I'm probably wrong about all this,
Ivan


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