Martin Vermeer <[EMAIL PROTECTED]> writes: | On Tue, Feb 03, 2004 at 10:34:16PM +0100, Lars Gullik Bjønnes spake thusly: > | ... > >> All this is just so super ugly that I cannot fathom why all other >> compilers than 2.95 has to suffer by this. > | Agreed... | >> IMHO const_cast is the wrong fix. even a ptr_cmp function would have >> been better... > | No... a colourful ribbon around a turd... | >> And are you sure that the correct fix wouldn't be to make both insets >> const? (that is after all the safer transition) > | That sounds better... like the attached? It compiles, but I wonder...
I'll have a look... >> BOOST_ASSERT(ptr_cmp(cur.inset(), this)); >> >> template <typename A, typename B> >> bool ptr_cmp(A const * a, B const * b) >> { >> return a == b; >> } > | Ribbon, meet turd. I can agree, but it would be quite easy to search for when we are removing this later... -- Lgb