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? 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. 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...)