Topic: std::swap and std::auto_ptr


Author: "Anthony Williams" <anthwil@nortelnetworks.com>
Date: Thu, 10 May 2001 17:43:52 GMT
Raw View
It would be good if std::swap worked with std::auto_ptr. As it stands,
std::swap requires an Assignable template parameter, and std::auto_ptr is
not Assignable. Swapping pointers is such a simple operation, and
fundamental to swapping many larger data types, that this seems a glaring
omission

Anthony
--
Anthony Williams
Software Engineer, Nortel Networks Optoelectronics
The opinions expressed in this message are not necessarily those of my
employer



---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]