[mpl][range_c][doc]integral_rank requirement not mentioned

Apparently, the T in: range_c<T,n,m> on page: http://www.boost.org/libs/mpl/doc/refmanual/range-c.html requires a specialization of integral_rank<T> to compile. Otherwise, I'm getting error: intel-linux.compile.c++ ../../../../bin.v2/lje/libs/indexed_types/test/range_c_enum_test.test/intel-linux/debug/range_c_enum_test.o /home/evansl/prog_dev/boost-release/boost_1_32_0/boost/mpl/aux_/largest_int.hpp(48): error: incomplete type is not allowed ( integral_rank<T1>::value >= integral_rank<T2>::value ) ^ However, this requirement is not mentioned on the range-c.html page. Shouldn't it be?

On 01/28/2005 02:03 PM, Larry Evans wrote:
Apparently, the T in:
range_c<T,n,m>
on page:
http://www.boost.org/libs/mpl/doc/refmanual/range-c.html
requires a specialization of integral_rank<T> to compile. Otherwise, [snip] However, this requirement is not mentioned on the range-c.html page. Shouldn't it be?
No, because the page requires T to be an arbitrary *integral* type, and according to the standard I have (section 3.9.1 Fundamental Types, para. 7), an enumeration is NOT an integral type, and all the integral types do have integral_rank<T> defined in largest_int.hpp. I'd still like something corresponding to range_c for enumerations. Any chance of that?
participants (1)
-
Larry Evans