mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
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:
parent
86574285cc
commit
45b56c1c62
4
format.h
4
format.h
@ -1062,12 +1062,12 @@ class BasicFormatter {
|
|||||||
|
|
||||||
Arg(void *value) : type(POINTER), pointer_value(value), formatter(0) {}
|
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.value = value.c_str();
|
||||||
string.size = value.size();
|
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.value = value.c_str();
|
||||||
string.size = value.size();
|
string.size = value.size();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user