Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2004-01-24 19:20:19

On 1/21/04 5:06 PM, "Howard Hinnant" <hinnant_at_[hidden]> wrote:

> So if I want to support large arrays (and I really, really should), my
> choices are:
> move_ptr[](ptrdiff_t) : Requires clients to use a cast to silence
> conversion warnings, or risk incorrect indexing logic when buffer size
> grows beyond INT_MAX.
> move_ptr[](size_t) : Works for large arrays with no warnings.
> Guess which one I favor. ;-)

Can you have both? The built-in signed integral types would go to the
"ptrdiff_t" version and the built-in unsigned integral types would go to the
"size_t" version. Or do the conversion rules produce an ambiguity error

Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT hotmail DOT com

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