diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2024-04-14 21:05:46 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2024-04-22 02:08:51 +0200 |
commit | 0259ed4cef16f06ab30d7173b91b92ddd0d51ede (patch) | |
tree | 2e30b0ad6fd923c13759cc6fa8d83d32e9c7fb78 | |
parent | 70ed18b3c21866cf014f4002af51db7066ebda28 (diff) | |
download | rosegarden-r14.1.2.tar.gz rosegarden-r14.1.2.zip |
Fix compatibility with C++17.r14.1.2
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 42e25148b6377a296ffcf22fafc19475a340245b)
-rw-r--r-- | src/base/AnalysisTypes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base/AnalysisTypes.h b/src/base/AnalysisTypes.h index 7fe8a6a..bc6e9ed 100644 --- a/src/base/AnalysisTypes.h +++ b/src/base/AnalysisTypes.h @@ -27,6 +27,7 @@ #include <map> #include <set> #include <vector> +#include <functional> #include "NotationTypes.h" @@ -157,7 +158,7 @@ protected: typedef std::pair<double, ChordLabel> ChordPossibility; typedef std::vector<ChordPossibility> HarmonyGuess; typedef std::vector<std::pair<timeT, HarmonyGuess> > HarmonyGuessList; - struct cp_less : public std::binary_function<ChordPossibility, ChordPossibility, bool> + struct cp_less : public std::function<bool(ChordPossibility, ChordPossibility)> { bool operator()(ChordPossibility l, ChordPossibility r); }; |