
1 Feb
2005
1 Feb
'05
7:34 p.m.
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.