From 42e25148b6377a296ffcf22fafc19475a340245b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 14 Apr 2024 21:05:46 +0200 Subject: [PATCH] Fix compatibility with C++17. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/base/AnalysisTypes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include #include +#include #include "NotationTypes.h" @@ -157,7 +158,7 @@ protected: typedef std::pair ChordPossibility; typedef std::vector HarmonyGuess; typedef std::vector > HarmonyGuessList; - struct cp_less : public std::binary_function + struct cp_less : public std::function { bool operator()(ChordPossibility l, ChordPossibility r); };