From e0683f4db0fb56f8139f78ca2e500b21ec2a67f0 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 28 Dec 2015 13:54:40 +0100 Subject: [PATCH] + fixes #0002347: freecad fails to build with Boost 1.60.0 --- src/Mod/Drawing/App/FeaturePage.cpp | 2 +- src/Mod/Drawing/App/FeatureViewSymbol.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Drawing/App/FeaturePage.cpp b/src/Mod/Drawing/App/FeaturePage.cpp index 60c9effce753..f9166a916c7b 100644 --- a/src/Mod/Drawing/App/FeaturePage.cpp +++ b/src/Mod/Drawing/App/FeaturePage.cpp @@ -211,7 +211,7 @@ App::DocumentObjectExecReturn *FeaturePage::execute(void) if (count < editText.size()) { // change values of editable texts boost::regex e2 ("((.*?)()"); - boost::re_detail::string_out_iterator out(newfragment); + std::back_insert_iterator out(newfragment); boost::regex_replace(out, begin, what[0].second, e2, "$1>"+editText[count]+"$3"); } count++; diff --git a/src/Mod/Drawing/App/FeatureViewSymbol.cpp b/src/Mod/Drawing/App/FeatureViewSymbol.cpp index 95f8d9c470f7..9b548dced796 100644 --- a/src/Mod/Drawing/App/FeatureViewSymbol.cpp +++ b/src/Mod/Drawing/App/FeatureViewSymbol.cpp @@ -28,6 +28,7 @@ #endif #include +#include #include #include @@ -103,7 +104,7 @@ App::DocumentObjectExecReturn *FeatureViewSymbol::execute(void) // change values of editable texts. Also strip the "freecad:editable" // attribute so it isn't detected by the page boost::regex e2 ("((.*?)()"); - boost::re_detail::string_out_iterator out(newsvg); + std::back_insert_iterator out(newsvg); boost::regex_replace(out, begin, what[0].second, e2, "$1$3>"+editText[count]+"$5"); } count++;