"Gennaro Prota" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tue, 4 Feb 2003 07:25:52 -0500, "Dave Abrahams"
> <[EMAIL PROTECTED]> 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



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to