summaryrefslogtreecommitdiffstats
path: root/src/user.cpp
diff options
context:
space:
mode:
authorLubos Dolezel <lubos@dolezel.info>2015-07-07 16:49:51 +0200
committerLubos Dolezel <lubos@dolezel.info>2015-07-07 16:49:51 +0200
commitdb51799e5b64e406bb83576ad609075142c26a86 (patch)
treef125a3a7c8839d6ca7e616153957f527383a02ee /src/user.cpp
parent4ec69237e6b777df818bc95bd46a58448340b30d (diff)
downloadtwinkle-db51799e5b64e406bb83576ad609075142c26a86.tar
twinkle-db51799e5b64e406bb83576ad609075142c26a86.tar.gz
twinkle-db51799e5b64e406bb83576ad609075142c26a86.tar.lz
twinkle-db51799e5b64e406bb83576ad609075142c26a86.tar.xz
twinkle-db51799e5b64e406bb83576ad609075142c26a86.zip
Build fix for a (probably?) broken std::match_results::format() overload
Diffstat (limited to 'src/user.cpp')
-rw-r--r--src/user.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/user.cpp b/src/user.cpp
index 206cf7e..ed24674 100644
--- a/src/user.cpp
+++ b/src/user.cpp
@@ -3105,7 +3105,9 @@ 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(i->fmt);
+ string result;
+
+ m.format(std::back_inserter(result), i->fmt);
log_file->write_header("t_user::convert_number",
LOG_NORMAL, LOG_DEBUG);