Skip to content

Commit

Permalink
Remove deprecated (in C++11) std::binary_function
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Feb 25, 2022
1 parent a3da3c8 commit ed691ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16327,7 +16327,7 @@ struct ShowStatus {
};

/** Order by m_waits, in descending order. */
struct OrderByWaits: public std::binary_function<Value, Value, bool>
struct OrderByWaits
{
/** @return true if rhs < lhs */
bool operator()(
Expand Down
10 changes: 1 addition & 9 deletions storage/innobase/sync/sync0debug.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 2014, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 2020, MariaDB Corporation.
Copyright (c) 2017, 2022, MariaDB Corporation.
Portions of this file contain modifications contributed and copyrighted by
Google, Inc. Those modifications are gratefully acknowledged and are described
Expand Down Expand Up @@ -100,10 +100,6 @@ struct LatchDebug {

/** Comparator for the ThreadMap. */
struct os_thread_id_less
: public std::binary_function<
os_thread_id_t,
os_thread_id_t,
bool>
{
/** @return true if lhs < rhs */
bool operator()(
Expand Down Expand Up @@ -389,10 +385,6 @@ struct LatchDebug {
private:
/** Comparator for the Levels . */
struct latch_level_less
: public std::binary_function<
latch_level_t,
latch_level_t,
bool>
{
/** @return true if lhs < rhs */
bool operator()(
Expand Down

0 comments on commit ed691ec

Please sign in to comment.