summaryrefslogtreecommitdiff
path: root/modules/codec/c++/data.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++/data.hpp')
-rw-r--r--modules/codec/c++/data.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp
index 8eff115..b3e4fe2 100644
--- a/modules/codec/c++/data.hpp
+++ b/modules/codec/c++/data.hpp
@@ -590,13 +590,14 @@ private:
std::string value_;
public:
data() = default;
+ data(uint64_t size__){
+ value_.resize(size__);
+ }
+
SAW_DEFAULT_COPY(data);
SAW_DEFAULT_MOVE(data);
data(std::string value__):value_{std::move(value__)}{}
- data(std::size_t size_){
- value_.resize(size_);
- }
/**
* Return the length of the string.