fix bug in buffer

This commit is contained in:
木头云 2019-03-27 14:25:51 +08:00 committed by GitHub
parent 5374eaa128
commit f6268ce62d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ buffer::buffer(char const & c)
}
buffer::buffer(buffer&& rhs)
: p_(nullptr) {
: buffer() {
swap(rhs);
}