Hard
Provide the strong exception guarantee with copy-and-swap
Fill in the blank so that if constructing temp throws, *this is left completely unchanged: the strong exception guarantee.
main.cpp
class Widget {public: Widget& operator=(const Widget& other) { Widget temp(other); return *this; } void swap(Widget& other) noexcept { std::swap(data_, other.data_); }private: int* data_;};96 of 117 in C++