
30 Dec
2007
30 Dec
'07
5:04 p.m.
Herve Bronnimann wrote:
Phil: Pardon my ignorance about ptr_vector, but you may be thinking about the wrong STL algorithm: try rotate instead of copy:
Yes, rotate would do something similar to the for loop in my example. The point is that ptr_containers can't use mutating std::algorithms; instead, they provide their own implementations of some of them as members. rotate isn't one of them, so I need some other way of doing it. Phil.