Temporarily switch to boost::regex

In combination with musl, parser crashed. glibc fine. Could not pinpoint
down the exact reason mainly due to time constraints. Strange, in both
cases actually libstdc++ is used, so this is very odd.
此提交包含在:
2018-11-11 21:28:45 +01:00
父節點 28bf5ab6d4
當前提交 882871c34f
共有 5 個檔案被更改,包括 18 行新增16 行删除

查看文件

@@ -8,6 +8,7 @@
#include <map>
#include <regex>
#include <ctime>
#include <boost/regex.hpp>
namespace utils
{
@@ -57,8 +58,8 @@ template <class T, class U> std::vector<U> getAll(std::multimap<T, U> map, T key
return result;
}
std::string regex_callback_replacer(std::regex regex, const std::string &input,
std::function<std::string(std::smatch &)> callback);
std::string regex_callback_replacer(boost::regex regex, const std::string &input,
std::function<std::string(boost::smatch &)> callback);
std::string readCompleteFile(std::string_view filepath);