Commit 67b062b3 authored by Milo Yip's avatar Milo Yip Committed by GitHub

Merge pull request #946 from hwiesmann/master

Add convenience method Key(std::basic_string<Ch> const&) to Writer
parents fe2b3603 568107e1
......@@ -222,6 +222,13 @@ public:
bool Key(const Ch* str, SizeType length, bool copy = false) { return String(str, length, copy); }
#if RAPIDJSON_HAS_STDSTRING
bool Key(const std::basic_string<Ch>& str)
{
return Key(str.data(), SizeType(str.size()));
}
#endif
bool EndObject(SizeType memberCount = 0) {
(void)memberCount;
RAPIDJSON_ASSERT(level_stack_.GetSize() >= sizeof(Level)); // not inside an Object
......
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