mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-03-03 12:58:02 +01:00
gcc-4.6 (Travis CI) does not support
This commit is contained in:
parent
999f5912f0
commit
7eca3b4e88
@ -92,14 +92,16 @@ public:
|
|||||||
/** \brief How to write comments.
|
/** \brief How to write comments.
|
||||||
* Default: All
|
* Default: All
|
||||||
*/
|
*/
|
||||||
StreamWriter::CommentStyle cs_ = StreamWriter::CommentStyle::All;
|
StreamWriter::CommentStyle cs_;
|
||||||
/** \brief Write in human-friendly style.
|
/** \brief Write in human-friendly style.
|
||||||
|
|
||||||
If "", then skip all indentation and newlines.
|
If "", then skip all indentation and newlines.
|
||||||
In that case, you probably want CommentStyle::None also.
|
In that case, you probably want CommentStyle::None also.
|
||||||
Default: "\t"
|
Default: "\t"
|
||||||
*/
|
*/
|
||||||
std::string indentation_ = "\t";
|
std::string indentation_;
|
||||||
|
|
||||||
|
StreamWriterBuilder();
|
||||||
|
|
||||||
/// Do not take ownership of sout, but maintain a reference.
|
/// Do not take ownership of sout, but maintain a reference.
|
||||||
StreamWriter* newStreamWriter(std::ostream* sout) const;
|
StreamWriter* newStreamWriter(std::ostream* sout) const;
|
||||||
|
@ -961,6 +961,10 @@ int MyStreamWriter::write(Value const& root)
|
|||||||
}
|
}
|
||||||
StreamWriter::Factory::~Factory()
|
StreamWriter::Factory::~Factory()
|
||||||
{}
|
{}
|
||||||
|
StreamWriterBuilder::StreamWriterBuilder()
|
||||||
|
: cs_(StreamWriter::CommentStyle::All)
|
||||||
|
, indentation_("\t")
|
||||||
|
{}
|
||||||
StreamWriter* StreamWriterBuilder::newStreamWriter(std::ostream* stream) const
|
StreamWriter* StreamWriterBuilder::newStreamWriter(std::ostream* stream) const
|
||||||
{
|
{
|
||||||
std::string colonSymbol = " : ";
|
std::string colonSymbol = " : ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user