forked from boostorg/intrusive
Fixed Trac #12432 ("Forced KeyOfValue creation when using custom compare on insert_check")
This commit is contained in:
1 parent
d5b81dc59a
commit
9ac060a6ae
10 files changed
+217
-88
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user