Commit e54136d7 authored by Drew Noakes's avatar Drew Noakes

Add std::string overload to PrettyWriter when RAPIDJSON_HAS_STDSTRING defined.

parent 9d4f0296
......@@ -82,6 +82,12 @@ public:
return Base::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() {
PrettyPrefix(kObjectType);
new (Base::level_stack_.template Push<typename Base::Level>()) typename Base::Level(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment