diff --git a/Tools/fcontacts.cpp b/Tools/fcontacts.cpp index 8db5b27a1..509de40d4 100644 --- a/Tools/fcontacts.cpp +++ b/Tools/fcontacts.cpp @@ -174,7 +174,7 @@ class ToolOptions : public opts::OptionsPackage // Check for atom equality only through atomid... -struct IdEquals : public binary_function +struct IdEquals { bool operator()(const pAtom& a, const pAtom& b) const { diff --git a/src/Atom.hpp b/src/Atom.hpp index f68dbcdf6..8fa826076 100644 --- a/src/Atom.hpp +++ b/src/Atom.hpp @@ -282,7 +282,7 @@ namespace loos { #if !defined(SWIG) //! Compares two atoms based solely on name, id, resid, resname, and segid - struct AtomEquals : public std::binary_function { + struct AtomEquals { bool operator()(const pAtom& a, const pAtom& b) const; }; @@ -291,7 +291,7 @@ namespace loos { /** * The default distance threshold is 1e-3 Angstroms */ - struct AtomCoordsEquals : public std::binary_function { + struct AtomCoordsEquals { AtomCoordsEquals(const double d) : threshold(d*d) { } AtomCoordsEquals() : threshold(1e-6) { } diff --git a/src/AtomicGroup.hpp b/src/AtomicGroup.hpp index 1cb0825ac..1224f5265 100644 --- a/src/AtomicGroup.hpp +++ b/src/AtomicGroup.hpp @@ -256,7 +256,7 @@ namespace loos * * Or as another example, comparing only residue numbers... * \code - * struct ResidEquals : public std::binary_function { + * struct ResidEquals { * bool operator()(const pAtom& a, const pAtom& b) { return(a.resid() == b.resid()); } * }; *