Author: wyoung
Date: Thu Jan  3 19:59:29 2008
New Revision: 2090

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2090&view=rev
Log:
Added ConnectionPool::empty()

Modified:
    trunk/lib/cpool.h

Modified: trunk/lib/cpool.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/cpool.h?rev=2090&r1=2089&r2=2090&view=diff
==============================================================================
--- trunk/lib/cpool.h (original)
+++ trunk/lib/cpool.h Thu Jan  3 19:59:29 2008
@@ -75,7 +75,10 @@
        ///
        /// If the pool raises an assertion on destruction, it means our
        /// subclass isn't calling clear() in its dtor as it should.
-       virtual ~ConnectionPool() { assert(pool_.empty()); }
+       virtual ~ConnectionPool() { assert(empty()); }
+
+       /// \brief Returns true if pool is empty
+       bool empty() const { return pool_.empty(); }
 
        /// \brief Grab a free connection from the pool.
        ///


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

Reply via email to