Author: mysqlpp
Date: Sat Mar 13 09:08:04 2010
New Revision: 2626
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2626&view=rev
Log:
Comparable wasn't in namespace mysqlpp, causing problems with any other
library that has its own Comparable class, like Boost if you host its
names into the global namespace before you #include mysql++.h. Patch by
Michael Radzewitz <[email protected]>
Modified:
trunk/lib/comparable.h
Modified: trunk/lib/comparable.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/comparable.h?rev=2626&r1=2625&r2=2626&view=diff
==============================================================================
--- trunk/lib/comparable.h (original)
+++ trunk/lib/comparable.h Sat Mar 13 09:08:04 2010
@@ -27,6 +27,8 @@
#if !defined(MYSQLPP_COMPARABLE_H)
#define MYSQLPP_COMPARABLE_H
+
+namespace mysqlpp {
/// \brief Mix-in that gives its subclass a full set of comparison
/// operators.
@@ -91,4 +93,6 @@
virtual int compare(const T& other) const = 0;
};
+}
+
#endif // !defined(MYSQLPP_COMPARABLE_H)
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits