From 45b56c1c621d69eb7b5ceed68d8e8a88beaa26a1 Mon Sep 17 00:00:00 2001 From: jdale88 Date: Thu, 27 Feb 2014 01:28:17 +0000 Subject: [PATCH] Fixed some places in BasicFormatter where non-templated string types were being used. See https://github.com/vitaut/format/issues/24 --- format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format.h b/format.h index c4b91bc4..62dae6a5 100644 --- a/format.h +++ b/format.h @@ -1062,12 +1062,12 @@ class BasicFormatter { Arg(void *value) : type(POINTER), pointer_value(value), formatter(0) {} - Arg(const std::string &value) : type(STRING), formatter(0) { + Arg(const std::basic_string &value) : type(STRING), formatter(0) { string.value = value.c_str(); string.size = value.size(); } - Arg(StringRef value) : type(STRING), formatter(0) { + Arg(BasicStringRef value) : type(STRING), formatter(0) { string.value = value.c_str(); string.size = value.size(); }