Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| >>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:
| 
| Andre> On Fri, Jun 13, 2003 at 02:39:06PM +0200, Jean-Marc Lasgouttes
| Andre> wrote: Could you please have a look where exactly your compiler
| Andre> needs a cast? I do not want to decorate everything with
| Andre> const_casts...
| >>  I am currently continuing compilation, I'll let you know. What is
| >> the proper cast anyway?
| 
| Andre> If I knew.
| 
| Andre> Probably somehting like
| 
| Andre>   const_cast<ParagraphList *>(plist)->end()
| 
| Andre> or similar...
| 
| Can't you just add a new operator!=(non-const,const)?

Why? Conforming compilers/stdlibs have no problem with the current
code.

Why should we add operators to std::list::iterator?

If anything we should mark the const_casts with "Just for old
non-conforming compilers" and remember to remove the casts later.

-- 
        Lgb

Reply via email to