|
Boost : |
Subject: Re: [boost] Double free from UTF
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-09-29 05:05:57
Steve M. Robbins <steve <at> sumost.ca> writes:
>
> On Tue, Sep 29, 2009 at 08:12:39AM +0200, Juergen Hunold wrote:
>
> > And as mentioned in another thread, using virtual destructors and
> > getting rid of the (now even old-style casts ( ) might be a much
> > better idea.
>
> I second this. The current code using an "if" statement and down
> casting seems stunningly bad design, to me. What's wrong with
> the straightforward polymorphic approach?
Cause there is nothing polymorphic about the test_unit/test_case class usage.
Gennadiy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk