
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/31/2010 02:03 PM, DE wrote:
looking at implementation: don't you want to make global integer constants members of enum(s)? as well as static integer constants (haven't noticed so far)
i think that
enum { bits_per_digit = whatever_it_is, digit_hibit = so_does_this, etc };
is better than global objects (defined in a header)
The code was written assuming that each of those constants has a particular type. I've never delved into how enums are treated, type-wise, so I'm not sure that would work the same.
to prove me wrong try to compile two source files including "xint.hpp" and using xint::integer (just for sure) and link them together i expect linker complaints about entities defined in several object files
They don't. I'm using a version of the library (only slightly earlier than the first Boost Vault one) in a large project here, and the compiler happily accepts it. - -- Chad Nelson Oak Circle Software, Inc. * * * -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuz5t4ACgkQp9x9jeZ9/wTXPgCg+M6cnr6lhsmyAtBgr5Qn+z41 7NUAoKxlMCi49XAoeGqCkUhEAdNizqXu =qKG3 -----END PGP SIGNATURE-----