$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2004-07-01 10:49:59
Daniel Frey <daniel.frey_at_[hidden]> writes:
> David Abrahams wrote:
>> Daniel Frey <daniel.frey_at_[hidden]> writes:
>> Not unless you make it generic:
>> template< typename T > void reset( T& t )
>> {
>> using std::swap;
>> T x;
>> swap(x, t);
>> }
>
> It depends on whether or not we expect users to provide swap() as a
> member function or as a free function for their own classes.
We (meaning I) expect a free function :-)
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com