mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Merge pull request #26 from jdale88/wstring-fix
Fixed some places in BasicFormatter where non-templated string types were being used
This commit is contained in:
commit
ae96e5bfa6
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