
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/01/2010 11:27 AM, vicente.botet wrote:
[...] or offer both safe and unsafe classes.
Certainly possible, though it would complicate the library.
Couldn't you add a template parameter stating the thread model? This parameter can be by default single_threaded, and the user can set it also to multi_threaded. In this way you let the user of each xint::integer to decide if the library must ensure thread safety or not.
That would solve the speed problem, but the dependency problem would remain -- the library would have to use Boost.Move and Boost.Thread always. (See the previous message in this thread for my reasons why that isn't desirable.) - -- Chad Nelson Oak Circle Software, Inc. * * * -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvcTBgACgkQp9x9jeZ9/wTMugCg0tAno3g8UQdiU9ZisiNgA84U mEYAnRqVLV6HX9DTIBac67xx7xOO75aE =dY0N -----END PGP SIGNATURE-----