summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/vespa/vespalib/util/jsonstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'staging_vespalib/src/vespa/vespalib/util/jsonstream.h')
-rw-r--r--staging_vespalib/src/vespa/vespalib/util/jsonstream.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/jsonstream.h b/staging_vespalib/src/vespa/vespalib/util/jsonstream.h
index c30ec8e08f2..7f480f325cf 100644
--- a/staging_vespalib/src/vespa/vespalib/util/jsonstream.h
+++ b/staging_vespalib/src/vespa/vespalib/util/jsonstream.h
@@ -53,15 +53,17 @@ class JsonStream : public JsonStreamTypes {
};
std::vector<StateEntry> _state;
- JsonStream(const JsonStream&) = delete;
- JsonStream& operator=(const JsonStream&) = delete;
-
StateEntry & top() { return _state.back(); }
const StateEntry & top() const { return _state.back(); }
void pop() { _state.resize(_state.size() - 1); }
void push(const StateEntry & e) { _state.push_back(e); }
public:
JsonStream(asciistream&, bool createIndents = false);
+ JsonStream(const JsonStream&) = delete;
+ JsonStream& operator=(const JsonStream&) = delete;
+ JsonStream(JsonStream &&) = default;
+ JsonStream& operator=(JsonStream &&) = default;
+ ~JsonStream();
JsonStream& operator<<(stringref);
JsonStream& operator<<(bool);