|
Boost : |
From: Steven Watanabe (steven_at_[hidden])
Date: 2007-10-08 12:22:30
AMDG
Eric Niebler <eric <at> boost-consulting.com> writes:
> > The test executes OK when I replace the implementation of copy with the
> > following code:
> >
> > while (first != last)
> > {
> > *result = *first;
> > ++first;
> > ++result;
> > }
>
> Ah, ha! A million thanks Markus! I'll find a work around. And credit you
> for your help, of course.
>
Wouldn't it be better to move
this->next_ = None;
from operator= to operator++?
Then std::copy will work correctly.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk