From 6791ddb27c0dce4907e18ef66a51f88220c51a6f Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 23 Jun 2020 16:17:48 +0200 Subject: [PATCH] ProParser: Fix build with MSVC Strangely, MSVC requires operator< for values of std::list. Change-Id: I5f62348a69d9b25585798b7824c6538d4cb5df7c Reviewed-by: hjk --- src/shared/proparser/proitems.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/shared/proparser/proitems.h b/src/shared/proparser/proitems.h index 3058b25c483..7fbeb54f1cf 100644 --- a/src/shared/proparser/proitems.h +++ b/src/shared/proparser/proitems.h @@ -257,6 +257,15 @@ inline ProStringList operator+(const ProStringList &one, const ProStringList &tw typedef QHash ProValueMap; +// For std::list (sic!) +#ifdef Q_CC_MSVC +inline bool operator<(const ProValueMap &, const ProValueMap &) +{ + Q_ASSERT(false); + return false; +} +#endif + // These token definitions affect both ProFileEvaluator and ProWriter enum ProToken { TokTerminator = 0, // end of stream (possibly not included in length; must be zero)