forked from OSchip/llvm-project
Remove uses of std::binary_function, removed in C++17.
llvm-svn: 298663
This commit is contained in:
parent
392f062675
commit
11873949e0
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue