From 8acd51fc6246cc12523521e3b621db43a0dcbbd2 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 20 Dec 2017 18:25:53 +0100 Subject: [PATCH] Replaced boost::regex with std::regex. --- xs/src/libslic3r/PlaceholderParser.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xs/src/libslic3r/PlaceholderParser.cpp b/xs/src/libslic3r/PlaceholderParser.cpp index 027ef4310..58ee09eea 100644 --- a/xs/src/libslic3r/PlaceholderParser.cpp +++ b/xs/src/libslic3r/PlaceholderParser.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include #ifdef _MSC_VER #include // provides **_environ @@ -22,9 +23,6 @@ #endif #include -#include -// Unicode iterator to iterate over utf8. -#include // Spirit v2.5 allows you to suppress automatic generation // of predefined terminals to speed up complation. With @@ -426,13 +424,13 @@ namespace client } try { std::string pattern(++ rhs.begin(), -- rhs.end()); - bool result = boost::regex_match(*subject, boost::regex(pattern)); + bool result = std::regex_match(*subject, std::regex(pattern)); if (op == '!') result = ! result; lhs.reset(); lhs.type = TYPE_BOOL; lhs.data.b = result; - } catch (boost::regex_error &ex) { + } catch (std::regex_error &ex) { // Syntax error in the regular expression boost::throw_exception(qi::expectation_failure( rhs.begin(), rhs.end(), spirit::info(std::string("*Regular expression compilation failed: ") + ex.what())));