Fixed some places in BasicFormatter where non-templated string types were being used.

See https://github.com/vitaut/format/issues/24
This commit is contained in:
jdale88 2014-02-27 01:28:17 +00:00
parent 86574285cc
commit 45b56c1c62

View File

@ -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<Char> &value) : type(STRING), formatter(0) {
string.value = value.c_str();
string.size = value.size();
}
Arg(StringRef value) : type(STRING), formatter(0) {
Arg(BasicStringRef<Char> value) : type(STRING), formatter(0) {
string.value = value.c_str();
string.size = value.size();
}