Aldy Hernandez <al...@redhat.com> writes:
> +  /* Implicit conversion to `unsigned int' returns the number of pairs.  */
> +  operator unsigned () const { return num_pairs (); }

Yeah, I know I've said it before, but it's a bit of a hobby horse, so...
please, please don't do this!  I think it would be far clearer if users
wanting the number of pairs used num_pairs () and if users wanting to
test for an empty range used is_empty () (as for vec.h).

Thanks,
Richard

Reply via email to