On Tue, Feb 03, 2004 at 10:34:16PM +0100, Lars Gullik Bjønnes wrote:
> Martin Vermeer <[EMAIL PROTECTED]> writes:
> 
> | On Tue, Feb 03, 2004 at 04:12:13PM +0100, Andre Poenitz spake thusly:
> >> 
> >> On Tue, Feb 03, 2004 at 05:14:58PM +0200, Martin Vermeer wrote:
> >> > It sure does help... pretty it is not.
> >> > 
> >> > Does it make sense to check this in (attached)?
> >> 
> >> Well, I certainly don't like it, but if it is the only way to get this
> >> code past 2.95, just do it.
> >> 
> >> > -        BOOST_ASSERT(cur.inset() == this);
> >> > +        BOOST_ASSERT(cur.inset() ==  const_cast<MathNestInset *>(this));
> >> 
> >> [But at least mind your spacing...]
> >> 
> >> Andre'
> >
> | It's in -- with corrected spacing.
> 
> All this is just so super ugly that I cannot fathom why all other
> compilers than 2.95 has to suffer by this.

Well, you could as well decide that 2.95 is off the 'supported' list
now. [I personally wouldn't care now]
 
> IMHO const_cast is the wrong fix. even a ptr_cmp function would have
> been better...

I could live with that, too. The const_cast is indeed very ugly.

Andre'

Reply via email to