Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2004-01-24 20:31:23


On Jan 24, 2004, at 7:20 PM, Daryle Walker wrote:

> 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
> instead?

If you simply define both, you're setting yourself up for an ambiguity
error. For example if:

ptrdiff_t == long
size_t == unsigned long

then an int argument might be able to convert to either with equal ease.

-Howard


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk