Re: [boost] [xint] Boost.XInt formal review (concrete complaint)

7 Mar
2011
7 Mar
'11
5:54 p.m.
----- "Peter Dimov" <pdimov@pdimov.com> 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
5213
Age (days ago)
5213
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ivan Le Lann