From 458ae2307cc092b2ece1e4eed8f07b4cc8cf3e65 Mon Sep 17 00:00:00 2001 From: Benjamin Alterauge <5332429+ageeye@users.noreply.github.com> Date: Thu, 23 Dec 2021 17:55:21 +0100 Subject: [PATCH] Spreadsheet: Fix trouble with clang and MacOS Since the Spreadsheet: support cell binding commit, I got trouble by building freecad. I didn't find similar reports in install/compile forum. So I will only use the old version of typedef for macos. Better solutions are welcome. See [trouble details](https://github.com/FreeCAD/FreeCAD/commit/68fca409833ca0c8c3811ad4efddcfcc3e2e4255#commitcomment-62364932) --- src/App/PropertyExpressionEngine.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App/PropertyExpressionEngine.h b/src/App/PropertyExpressionEngine.h index 9a4982d2d2..b6ce8f9c08 100644 --- a/src/App/PropertyExpressionEngine.h +++ b/src/App/PropertyExpressionEngine.h @@ -177,7 +177,11 @@ private: typedef boost::adjacency_list< boost::listS, boost::vecS, boost::directedS > DiGraph; typedef std::pair Edge; // Note: use std::map instead of unordered_map to keep the binding order stable + #ifdef FC_OS_MACOSX + typedef boost::unordered_map ExpressionMap; + #else typedef std::map ExpressionMap; + #endif std::vector computeEvaluationOrder(ExecuteOption option);