From 62e4aebe87e7dc19d66ed01fba2ea97bcc5846ad Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 22 Nov 2010 12:08:52 +0200 Subject: Use typeinfo comparator from libodb --- odb/mysql/statement-cache.hxx | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'odb/mysql/statement-cache.hxx') 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 #include +#include #include @@ -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, - type_info_comparator> map; + details::type_info_comparator> map; connection& conn_; map map_; -- cgit v1.1