
On 02/10/2005 04:38 PM, Larry Evans wrote:
On 02/01/2005 07:28 AM, Arkadiy Vertleyb wrote:
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.
In the sandbox vault, there's range_all.zip which, IFAICT, solves this problem by having a separate class, range_c_max, for including the max value in the enumeration. Also next<> and prev<> have been specialized as well as integral_rank. In addition, files in aux_/ preprocessed/gcc had to be modified by supplying an explicit cast from an integral to the enumeration.
OOPS. Sorry, wrong subject. Actually, only the change to the preprocessed/gcc files is relevant to this subject and maybe the next<> and prev<> specializations. The subject I had in mind was creating a range_c for enumerations which was a subject I'd emailed Aleksey about.