Author: cdfrey
Date: Wed Nov 30 21:00:27 2005
New Revision: 1151
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1151&view=rev
Log:
Fixed bug in ResUse copy constructor, so it behaves the same as operator=().
ResUse behaves like auto_ptr, in that only one ResUse has a valid result_
pointer at any given time.
Modified:
trunk/lib/result.h
Modified: trunk/lib/result.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/result.h?rev=1151&r1=1150&r2=1151&view=diff
==============================================================================
--- trunk/lib/result.h (original)
+++ trunk/lib/result.h Wed Nov 30 21:00:27 2005
@@ -82,6 +82,7 @@
initialized_(false)
{
copy(other);
+ other.result_ = 0;
}
/// \brief Destroy object