From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2008-04-08 07:43:31


Jan Gaspar <jano_gaspar <at> yahoo.com> writes:

>
> Yes, using the modulus operation would do. But I think wrapping the
> circular_buffer instead of deriving from it would suit better as
> there is no virtual destructor present in the circular_buffer.

I think the "don't derive without virtual dtor" rule is a little
overrated. I give my opinions on the matter at

http://bannalia.blogspot.com/2008/02/derivation-without-virtual-destructor.html

Best regards,

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo