On Wed, May 28, 2003 at 08:35:01AM +0200, Lars Gullik Bjønnes wrote:
> Andre Poenitz <[EMAIL PROTECTED]> writes:
> 
> | > to fit.  All problems larger than --><-- has been solved by a
> | > const_cast.
> 
> This ^^^^^^
>  
> | Wouldn't it be better in such cases to change the functions' signature to 
> | 
> |   int getEndLabel(ParagraphList::const_iterator...
> 
> Perhaps. But I am not willing to open that issue now... It is some
> easy to come in the situation that you need to convert
> ParagraphList::iterator to ParagraphList::const_iterator and that is
> reall cumbersome.

I think std::list<>::const_iterator  has a corresponding constructor.

Cumbersome... a reinterpret_cast<> in that constructor would work ;-)

Ok, I shut up.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)

Reply via email to