Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2003-02-05 08:30:01

"Gennaro Prota" <gennaro_prota_at_[hidden]> wrote in message
> On Tue, 4 Feb 2003 07:25:52 -0500, "Dave Abrahams"
> <dave_at_[hidden]> wrote:
> >In that case it would seem likely that it could be fixed by reverting to
> >C-style cast, no?
> I've seen in the CVS that the casts are to support enums. But the
> documentation for integral_c says
> An Integral Constant is a class (or a template class)
> that represents a value of a built-in integral type
> Enumerations are not integral types. Also, the presence of next and
> prior exposes the use with enumerators to undefined behavior. Do we
> really want that?
Good point, however, I think that the *intent* of 'integral_c' is to
represent values that are 'integral constant expressions', which paricularly
includes enumerations besides ordinary integral type values.

Fernando Cacciola

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