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

This commit is contained in:
Drew Noakes 2015-02-02 09:21:28 +00:00
parent 4cc3605849
commit 3cfd675163

View File

@ -127,6 +127,12 @@ public:
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() {
Prefix(kObjectType);
new (level_stack_.template Push<Level>()) Level(false);