diff options
Diffstat (limited to 'meowpp/Self.h')
-rw-r--r-- | meowpp/Self.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meowpp/Self.h b/meowpp/Self.h index 6518c79..94db352 100644 --- a/meowpp/Self.h +++ b/meowpp/Self.h @@ -2,6 +2,7 @@ #define Self_h__ #include <cstdlib> +#include <algorithm> namespace meow { @@ -166,7 +167,7 @@ private: --(pointer_->counter_); Kernel* dupl = new Kernel(this, *pointer_->data_); if (pointer_->master_ == this || pointer_->master_ == NULL) { - std::swap(pointer_->pointer_, dupl->pointer_); + std::swap(pointer_->data_, dupl->data_); pointer_->master_ = NULL; } pointer_ = dupl; |