Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-02-01 14:34:05


Arkadiy Vertleyb <vertleyb <at> hotmail.com> writes:

[snip]
> I think that one major problem is that you promise next<> and prev<> on
> integrals. It would be quite problematic to satisfy this for enums staying
> in the same enum type.
The same problem exits with any integral type if you use next enough
times. Beside, you can enable checking when the end or beginning
is reached by defining specialziations of:

  max_value<T>::value
  min_value<T>::value

just as, at present, in largest_int, there are specializations
for integral_rank<T> for each T that is an integral type.


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