Author: wyoung
Date: Wed Nov 28 04:12:38 2007
New Revision: 1900
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1900&view=rev
Log:
Added RefCountedPointer::operator ==()
Modified:
trunk/lib/refcounted.h
Modified: trunk/lib/refcounted.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/refcounted.h?rev=1900&r1=1899&r2=1900&view=diff
==============================================================================
--- trunk/lib/refcounted.h (original)
+++ trunk/lib/refcounted.h Wed Nov 28 04:12:38 2007
@@ -162,6 +162,13 @@
return *this;
}
+ /// \brief Returns true if other refcounted pointer's internal
+ /// data pointer is the same as this one's.
+ bool operator ==(const ThisType& rhs)
+ {
+ return rhs->counted_ == counted_;
+ }
+
/// \brief Access the object through the smart pointer
T* operator ->() const
{
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits