Author: wyoung
Date: Mon Jan 11 18:29:36 2010
New Revision: 2606

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2606&view=rev
Log:
Added operator void* to ScopedConnection for truthiness test

Modified:
    trunk/lib/scopedconnection.h

Modified: trunk/lib/scopedconnection.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/scopedconnection.h?rev=2606&r1=2605&r2=2606&view=diff
==============================================================================
--- trunk/lib/scopedconnection.h (original)
+++ trunk/lib/scopedconnection.h Mon Jan 11 18:29:36 2010
@@ -70,6 +70,9 @@
        /// \brief Dereference
        Connection& operator*() const { return *connection_; }
 
+       /// \brief Truthiness operator
+       operator void*() const { return connection_; }
+
 private:
        // ScopedConnection objects cannot be copied.  We want them to be
        // tightly scoped to their use point, not put in containers or


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to