Subject: Re: [boost] New Boost.XInt Library, request preliminary review
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2010-03-26 23:39:26


On 26 March 2010 17:47, Chad Nelson <chad.thecomfychair_at_[hidden]> wrote:
>
> This disables the copy-on-write optimization that the library uses by
> default, sets the exception-blocking code to work on a per-thread basis,
> and protects some shared resources from multiple simultaneous accesses,
> allowing fully thread-safe operation. You are still responsible for
> ensuring that only one thread can access any specific integer at a time.
>
> When this option is used, you must also link your program with the
> Boost.Thread library.
>

I'm not convinced that integers should be COW. What situations do you
forsee where COW would be helpful but move semantics wouldn't suffice?