File Revert-Build-fix-for-a-probably-broken-std-match_res.patch of Package twinkle
From: Michal Kubecek <mkubecek@suse.cz>
Date: Tue, 14 Jul 2015 08:44:08 +0200
Subject: Revert "Build fix for a (probably?) broken std::match_results::format() overload"
Patch-mainline: Never, workaround for gcc 4.8 bug
This reverts commit db51799e5b64e406bb83576ad609075142c26a86.
As std::regex is broken in gcc < 4.9, we need to stick with boost regex
for gcc 4.8 builds.
---
src/user.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/user.cpp b/src/user.cpp
index ed24674f888a..206cf7ef1719 100644
--- a/src/user.cpp
+++ b/src/user.cpp
@@ -3105,9 +3105,7 @@ string t_user::convert_number(const string &number, const list<t_number_conversi
try {
if (std::regex_match(number, m, std::regex(i->re))) {
- string result;
-
- m.format(std::back_inserter(result), i->fmt);
+ string result = m.format(i->fmt);
log_file->write_header("t_user::convert_number",
LOG_NORMAL, LOG_DEBUG);
--
2.4.5