Medium
Leave the moved-from object safely destructible
Fill in the blank so that after a Buffer is moved from, both the moved-from and moved-to objects can be safely destroyed without a double-free.
main.cpp
class Buffer {public: Buffer(Buffer&& other) noexcept : data_(other.data_), size_(other.size_) { } ~Buffer() { delete[] data_; }private: int* data_; size_t size_;};87 of 117 in C++