Remove uses of std::binary_function, removed in C++17.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 23 Mar 2017 23:32:03 +0000 (23:32 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 23 Mar 2017 23:32:03 +0000 (23:32 +0000)
llvm-svn: 298663

clang/include/clang/AST/TypeOrdering.h
clang/include/clang/Basic/SourceLocation.h

index 392e544..fa64fae 100644 (file)
@@ -26,7 +26,7 @@
 namespace clang {
 
 /// \brief Function object that provides a total ordering on QualType values.
-struct QualTypeOrdering : std::binary_function<QualType, QualType, bool> {
+struct QualTypeOrdering {
   bool operator()(QualType T1, QualType T2) const {
     return std::less<void*>()(T1.getAsOpaquePtr(), T2.getAsOpaquePtr());
   }
index 006cf3d..f0fe4c2 100644 (file)
@@ -321,8 +321,7 @@ public:
   }
 
   /// \brief Comparison function class, useful for sorting FullSourceLocs.
-  struct BeforeThanCompare : public std::binary_function<FullSourceLoc,
-                                                         FullSourceLoc, bool> {
+  struct BeforeThanCompare {
     bool operator()(const FullSourceLoc& lhs, const FullSourceLoc& rhs) const {
       return lhs.isBeforeInTranslationUnitThan(rhs);
     }