]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298663 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 392e544d90c11e6b6d1078f630ec3f318bc3dbf5..fa64fae8824fadd3bccdb0cabd847322971778c7 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 006cf3dc950c6770e43d61bb1e4befe6e46df185..f0fe4c27062ee3b68017456d8c7a927e3279d524 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);
     }