src/cxx_supportlib/vendor-modified/boost/move/algo/predicate.hpp in passenger-6.0.7 vs src/cxx_supportlib/vendor-modified/boost/move/algo/predicate.hpp in passenger-6.0.8
- old
+ new
@@ -26,17 +26,32 @@
{
explicit antistable(Comp &comp)
: m_comp(comp)
{}
+ antistable(const antistable & other)
+ : m_comp(other.m_comp)
+ {}
+
template<class U, class V>
bool operator()(const U &u, const V & v)
{ return !m_comp(v, u); }
+ const Comp &get() const
+ { return m_comp; }
+
private:
antistable & operator=(const antistable &);
Comp &m_comp;
};
+
+template<class Comp>
+Comp unantistable(Comp comp)
+{ return comp; }
+
+template<class Comp>
+Comp unantistable(antistable<Comp> comp)
+{ return comp.get(); }
template <class Comp>
class negate
{
public: