Fixed Trac #12432 ("Forced KeyOfValue creation when using custom compare on insert_check")

This commit is contained in:
Ion Gaztañaga committed 2016-09-03 00:01:55 +02:00
1 parent d5b81dc59a
commit 9ac060a6ae
10 files changed
+217 -88

No files matched your search

+14
View File
@@ -66,6 +66,20 @@ class empty_disposer
{}
};
struct any_less
{
template<class T, class U>
bool operator()(const T &t, const U &u) const
{ return t < u; }
};
struct any_greater
{
template<class T, class U>
bool operator()(const T &t, const U &u) const
{ return t > u; }
};
} //namespace test {
} //namespace intrusive {
} //namespace boost {