Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2004-01-11 16:29:11


"Andy Little" <andy_at_[hidden]> escribió en el mensaje
news:btof3u$ra$1_at_sea.gmane.org...
>
> "David Abrahams" <dave_at_[hidden]> wrote
> > "Fernando Cacciola" <fernando_cacciola_at_[hidden]> writes:
>
> > > (2)
> > > VC7.1 doesn't like the implementation of "mpl::equal_to" when the
> operands
> > > are "mpl::integral_c" of ENUMERATION type.
>
> Arent enums different enough from integers to have their own 'enum_c'
>
Yes, I think so.

> 1)
> enum-->int// ok , int --> enum //error.
>
> 2)
> enums are best suited for use where you need a Closed set
> of arbitrarily different values. They should not really be used for maths,
> because there is no requirement on enums that they go beyond a certain
> range(C++3rdEd 4.8):
>
Agreed.

I think we should have enum_c

Fernando Cacciola
SciSoft


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