]> www.ginac.de Git - ginac.git/blobdiff - ginac/ptr.h
Fix a comment.
[ginac.git] / ginac / ptr.h
index 29db23501ead133f09d92fcd47c432bcbe7423d8..9d76bfeed3ee4ce79317c39a2783467a210d78f5 100644 (file)
@@ -61,7 +61,7 @@ template <class T> class ptr {
        // and makewritable() requires locking.
 
 public:
-    // no default ctor: a ptr is never unbound
+       // no default ctor: a ptr is never unbound
 
        /** Bind ptr to newly created object, start reference counting. */
        ptr(T *t) noexcept : p(t) { GINAC_ASSERT(p); p->set_refcount(1); }
@@ -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);