Skip to content

Commit

Permalink
Move constructor support for PrettyWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
CreoValis committed Sep 19, 2016
1 parent ccd13e3 commit 878eef8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/rapidjson/prettywriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class PrettyWriter : public Writer<OutputStream, SourceEncoding, TargetEncoding,
explicit PrettyWriter(StackAllocator* allocator = 0, size_t levelDepth = Base::kDefaultLevelDepth) :
Base(allocator, levelDepth), indentChar_(' '), indentCharCount_(4) {}

explicit PrettyWriter(PrettyWriter&& rhs) :
Base(std::forward(rhs)), indentChar_(rhs.indentChar_), indentCharCount_(rhs.indentCharCount_), formatOptions_(rhs.formatOptions_) {}

//! Set custom indentation.
/*! \param indentChar Character for indentation. Must be whitespace character (' ', '\\t', '\\n', '\\r').
\param indentCharCount Number of indent characters for each indentation level.
Expand Down

0 comments on commit 878eef8

Please sign in to comment.