Skip to content

Commit

Permalink
Merge branch 'ex13' into ex14
Browse files Browse the repository at this point in the history
  • Loading branch information
Rconybea committed Dec 19, 2023
2 parents 06b78cb + 5ecd110 commit 6ed07f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compression/include/compression/buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ class buffer {
public:
buffer(size_type buf_z, size_type align_z = sizeof(char))
: is_owner_{true},
lo_pos_{0}, hi_pos_{0},
buf_{new (std::align_val_t(align_z)) CharT [buf_z]},
buf_z_{buf_z} {}
buf_z_{buf_z},
lo_pos_{0}, hi_pos_{0}
{}
~buffer() { this->clear(); }

CharT * buf() const { return buf_; }
Expand Down

0 comments on commit 6ed07f8

Please sign in to comment.