Skip to content

Commit

Permalink
+ fixes #2347: freecad fails to build with Boost 1.60.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 28, 2015
1 parent 07ba938 commit e0683f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Drawing/App/FeaturePage.cpp
Expand Up @@ -211,7 +211,7 @@ App::DocumentObjectExecReturn *FeaturePage::execute(void)
if (count < editText.size()) {
// change values of editable texts
boost::regex e2 ("(<text.*?freecad:editable=\""+what[1].str()+"\".*?<tspan.*?)>(.*?)(</tspan>)");
boost::re_detail::string_out_iterator<std::string > out(newfragment);
std::back_insert_iterator<std::string> out(newfragment);
boost::regex_replace(out, begin, what[0].second, e2, "$1>"+editText[count]+"$3");
}
count++;
Expand Down
3 changes: 2 additions & 1 deletion src/Mod/Drawing/App/FeatureViewSymbol.cpp
Expand Up @@ -28,6 +28,7 @@
#endif

#include <iomanip>
#include <iterator>
#include <boost/regex.hpp>

#include <Base/Exception.h>
Expand Down Expand Up @@ -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 ("(<text.*?)(freecad:editable=\""+what[1].str()+"\")(.*?<tspan.*?)>(.*?)(</tspan>)");
boost::re_detail::string_out_iterator<std::string > out(newsvg);
std::back_insert_iterator<std::string> out(newsvg);
boost::regex_replace(out, begin, what[0].second, e2, "$1$3>"+editText[count]+"$5");
}
count++;
Expand Down

0 comments on commit e0683f4

Please sign in to comment.