Well, it's always good to get hints on better practice, but in this case "i"
is used only in calls to xforms routines and so an int is the required type.
Angus
On Wednesday 29 November 2000 19:37, Lars Gullik Bjønnes wrote:
> Angus Leeming <[EMAIL PROTECTED]> writes:
> | Attached is a tiny patch to FormRef. Clicking on different insets when
> | the sort key was activated was a bit odd before this fix ;-)
>
> + if (cit != keys.end()) {
> + int const i = static_cast<int>(cit - keys.begin());
>
>
> Not sure if I agree with this one (oh the patch is ok)
>
> but ...
>
> vector<string>::difference_type const i = cit - keys.begin();
>
> seems better?
>
> But then perhaps you will need casts otherplaces so I don't know...
>
> Anyway keep all the typedefs for the different std::constainers in
> mind when using them.
>
> I'll apply the patch.
>
> Lgb