From 26e36b3a9d7b49d46ecfa69b447482251acba8ac Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 24 Jan 2024 16:53:38 +0300 Subject: Turn libodb repository into package for muti-package repository --- libodb/odb/details/type-info.hxx | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 libodb/odb/details/type-info.hxx (limited to 'libodb/odb/details/type-info.hxx') diff --git a/libodb/odb/details/type-info.hxx b/libodb/odb/details/type-info.hxx new file mode 100644 index 0000000..fe01699 --- /dev/null +++ b/libodb/odb/details/type-info.hxx @@ -0,0 +1,36 @@ +// file : odb/details/type-info.hxx +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_DETAILS_TYPE_INFO_HXX +#define ODB_DETAILS_TYPE_INFO_HXX + +#include + +#include + +namespace odb +{ + namespace details + { + struct 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 + } + }; + } +} + +#include + +#endif // ODB_DETAILS_TYPE_INFO_HXX -- cgit v1.1