aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/statement-cache.hxx20
1 files changed, 2 insertions, 18 deletions
diff --git a/odb/mysql/statement-cache.hxx b/odb/mysql/statement-cache.hxx
index 480f30d..892f99a 100644
--- a/odb/mysql/statement-cache.hxx
+++ b/odb/mysql/statement-cache.hxx
@@ -17,6 +17,7 @@
#include <odb/mysql/object-statements.hxx>
#include <odb/details/shared-ptr.hxx>
+#include <odb/details/type-info.hxx>
#include <odb/mysql/details/export.hxx>
@@ -26,23 +27,6 @@ namespace odb
{
class connection;
- struct LIBODB_MYSQL_EXPORT type_info_comparator
- {
- bool
- operator() (const std::type_info* x, const std::type_info* y) const
- {
- // XL C++ on AIX has buggy type_info::before() in that
- // it returns true for two different type_info objects
- // that happened to be for the same type.
- //
-#if defined(__xlC__) && defined(_AIX)
- return *x != *y && x->before (*y);
-#else
- return x->before (*y);
-#endif
- }
- };
-
class LIBODB_MYSQL_EXPORT statement_cache
{
public:
@@ -70,7 +54,7 @@ namespace odb
private:
typedef std::map<const std::type_info*,
details::shared_ptr<object_statements_base>,
- type_info_comparator> map;
+ details::type_info_comparator> map;
connection& conn_;
map map_;