summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-04-14 21:05:46 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-04-21 18:02:04 +0200
commit42e25148b6377a296ffcf22fafc19475a340245b (patch)
treeec3a8492f61bf27d7724ae8e640328f87a358ed1
parent1e5e9153cd83bb1b1e161420a15c3594e28f58c6 (diff)
downloadrosegarden-42e25148b6377a296ffcf22fafc19475a340245b.tar.gz
rosegarden-42e25148b6377a296ffcf22fafc19475a340245b.zip
Fix compatibility with C++17.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--src/base/AnalysisTypes.h3
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);
};