On Fri, Feb 23, 2001 at 04:32:32PM +0000, John Levon wrote:
> > > > I thought we dodn't do C-style casts?
> > > 
> > > You want me to do a typedef instead ? or is the scope resolution
> > > operator allowed in C++ style casts ?
> > 
> > Change the line above to
> >  Formats::FormatList::size_type const i = fl_get_choice(dialog_->choice_from);
> > and then you won't need a cast.
> 
> Is the assumption that vector::size_type will always be signed acceptable ?
> If so, then this would work indeed. I wasn't sure this assumption was OK

vector::size_type is unsigned int, while fl_get_choice returns an int,
but you don't need a cast in this case.

Reply via email to