Skip to content

Commit 194d897

Browse files
committed
Walkable<buffer>: Allow buffer moves in
1 parent aa2502e commit 194d897

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/DynamicBuffer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ class Walkable
166166
Walkable() : _left(0), _right(0) {};
167167
explicit Walkable(size_t len) : _buf(len), _left(0), _right(0) {};
168168
Walkable(const char* buf, size_t len) : _buf(buf, len), _left(0), _right(0) {};
169+
Walkable(buffer_type&& buf) : _buf(std::move(buf)), _left(0), _right(0) {};
169170
explicit Walkable(const String& s) : _buf(s), _left(0), _right(0) {};
170171
explicit Walkable(String&& s) : _buf(std::move(s)), _left(0), _right(0) {};
171172

0 commit comments

Comments
 (0)