Add std::string overload to Writer when RAPIDJSON_HAS_STDSTRING defined.
This commit is contained in:
parent
4cc3605849
commit
3cfd675163
@ -127,6 +127,12 @@ public:
|
|||||||
return WriteString(str, length);
|
return WriteString(str, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if RAPIDJSON_HAS_STDSTRING
|
||||||
|
bool String(const std::basic_string<Ch>& str) {
|
||||||
|
return String(str.data(), SizeType(str.size()));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool StartObject() {
|
bool StartObject() {
|
||||||
Prefix(kObjectType);
|
Prefix(kObjectType);
|
||||||
new (level_stack_.template Push<Level>()) Level(false);
|
new (level_stack_.template Push<Level>()) Level(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user