[boost] Re: Re: Re: Formal Review Request: circular_buffer [long]

2003-07-22 Thread Pavel Vozenilek
Hello Jano, "Jan Gaspar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > 3. This fragment fails: > > struct Test {} > > circular_buffer a(2); > > a.push_back(Test()); > > a.push_back(a[0]); > > > I don't understand this. IMHO there will be 2 copies of Test(). Nothi

[boost] Re: Re: Re: Formal Review Request: circular_buffer [long]

2003-07-21 Thread Dave Gomboc
> > > > 3. cb_iterator: is the m_end value needed? > > > > > > > >It can be computed using 'm_it == m_buff->m_last' in > > > >those few (~2) places it is needed and if eliminated, > > > >iterator will get smaller (by 30%) and simpler. > > > > > > Yes, the m_end member is needed. Suppose