Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Wed, May 28, 2003 at 09:44:29AM +0200, Lars Gullik Bjønnes wrote:
| > | It certainly is undefined behaviour. But every std::list<>::iterator I know
| > | of is binary compatible with its corresponding std::list<>::const_iterator
| > | (in contrast to your string/int example) even if that's not required at
| > | all. So it "works" in practice.
| > 
| > Is "'works' in practice" good enough?
| 
| We are talking about the transition phase to std::list, don't we?

So so sure...
 
| If so, it is certainly 'good enough' as it would be better then most of the
| other stuff like undo etc. ;-}
| 
| I was just trying to give a hint how that 'cumbersome' conversion can be
| done in one line.

but it is not iterator -> const_iterator that is cumbersom (as you
have shown), but const_iterator -> iterator.
 
-- 
        Lgb

Reply via email to