Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/llfio/v2.0/path_handle.hpp')
-rw-r--r--include/llfio/v2.0/path_handle.hpp4
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;