
8 Oct
2007
8 Oct
'07
5:14 p.m.
Steven Watanabe wrote:
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.
Great suggestion. Thanks Steven. -- Eric Niebler Boost Consulting www.boost-consulting.com