Boost logo

Boost :

Subject: Re: [boost] Second iteration of Boost.XInt library uploaded, requesting further comments
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-03-31 20:20:46

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.
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


Boost list run by bdawes at, gregod at, cpdaniel at, john at