
8 Apr
2008
8 Apr
'08
11:43 a.m.
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.h... Best regards, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo