diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-22 12:08:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-22 12:08:52 +0200 |
commit | 62e4aebe87e7dc19d66ed01fba2ea97bcc5846ad (patch) | |
tree | e956762a3de7f55edc560b08e5c8aaa665790472 | |
parent | b2f364f0e1a3c67732c7b54ce4422c6827402572 (diff) |
Use typeinfo comparator from libodb
-rw-r--r-- | odb/mysql/statement-cache.hxx | 20 |
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_; |