Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2000-10-21 06:55:37


>>Anyhow, I'll press on with a defect report.
>
>But the result will almost certainly be that const int is a signed
integral
>type, and so forth.

Maybe, it depends upon what you mean by integer: does "const int" implement
operator ++, or operator += ?
Depending upon the context the answer is either yes or no, the only thing
you can really say is that it is a cv-qualified integer.

>Good deal. Does this mean that boost:: is_standard_signed_integral should
>be renamed is_signed_integral? :-)

Just to clarify, there is already a is_signed_integral template, in fact
there are three closely related templates:

is_standard_signed_integral: those signed integral types required by the
standard.
is_extension_signed_integral: addition builtin signed integral types (long
long etc).
is_signed_integral: The union of the above two.

In almost every case is_signed_integral is the template to use here.

- John.


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