
27 Jan
2005
27 Jan
'05
12:52 p.m.
why not : template <typename T> void reset(T& t) { t = T(); } but I don´t think this exists in boost already, but should. On Wed, 26 Jan 2005 16:48:41 +0100, Stefan Slapeta <stefan@slapeta.com> wrote:
Hi all,
do we have a non-member reset() somewhere? Something like
template <typename T> void reset(T& t) { std::swap(t, T()); }
(of course to be refined...)
Stefan
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost