]> www.ginac.de Git - ginac.git/blobdiff - ginac/ptr.h
[C++17] Remove inheritance from std::binary_function, std::unary_function.
[ginac.git] / ginac / ptr.h
index 29db23501ead133f09d92fcd47c432bcbe7423d8..b7736c7c322d8d4f478b5ac69401b682b6e7e5df 100644 (file)
@@ -155,8 +155,7 @@ namespace std {
 
 /** Specialization of std::less for ptr<T> to enable ordering of ptr<T>
  *  objects (e.g. for the use as std::map keys). */
-template <class T> struct less<GiNaC::ptr<T>>
- : public binary_function<GiNaC::ptr<T>, GiNaC::ptr<T>, bool> {
+template <class T> struct less<GiNaC::ptr<T>> {
        bool operator()(const GiNaC::ptr<T> &lhs, const GiNaC::ptr<T> &rhs) const
        {
                return less<T*>()(lhs.p, rhs.p);