diff options
Diffstat (limited to 'include/llfio/v2.0/path_handle.hpp')
-rw-r--r-- | include/llfio/v2.0/path_handle.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llfio/v2.0/path_handle.hpp b/include/llfio/v2.0/path_handle.hpp index 816caec3..a931bd42 100644 --- a/include/llfio/v2.0/path_handle.hpp +++ b/include/llfio/v2.0/path_handle.hpp @@ -81,6 +81,10 @@ public: //! Move assignment permitted path_handle &operator=(path_handle &&o) noexcept { + if(this == &o) + { + return *this; + } this->~path_handle(); new(this) path_handle(std::move(o)); return *this; |