void writeObjectTag (std::string const& tag) { #ifndef NDEBUG // Make sure we haven't already seen this tag. auto& tags = stack_.top ().tags; check (tags.find (tag) == tags.end (), "Already seen tag " + tag); tags.insert (tag); #endif stringOutput (tag); output_ ({&colon, 1}); }
WriterObject stringWriterObject (std::string& s) { return WriterObject (stringOutput (s)); }
static const std::string& bufferString(){ return stringOutput(); }