summaryrefslogtreecommitdiff
path: root/modules/codec-json/c++/json.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec-json/c++/json.hpp')
-rw-r--r--modules/codec-json/c++/json.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/codec-json/c++/json.hpp b/modules/codec-json/c++/json.hpp
index b3ea19e..7a971a0 100644
--- a/modules/codec-json/c++/json.hpp
+++ b/modules/codec-json/c++/json.hpp
@@ -18,7 +18,7 @@ class data<Schema, encode::Json> {
private:
own<buffer> buffer_;
public:
- data():buffer_{}{}
+ data():buffer_{heap<ring_buffer>()}{}
data(own<buffer> buffer__):buffer_{std::move(buffer__)}{}
data(std::size_t ring_size_):buffer_{heap<ring_buffer>(ring_size_)}{}