Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/stan/callbacks/json_writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace callbacks {
* The writer doesn't try to validate the object's internal structure
* or object completeness, only syntactic correctness.
*
* @tparam Stream A type with with a valid `operator<<(std::string)`
* @tparam Stream A type with a valid `operator<<(std::string)` and `flush()`
* @tparam Deleter A class with a valid `operator()` method for deleting the
* output stream
*/
Expand Down Expand Up @@ -227,6 +227,7 @@ class json_writer final : public structured_writer {
record_element_needs_comma_ = true;
} else {
*output_ << "\n";
output_->flush();
}
}

Expand Down
Loading