Skip to content
Snippets Groups Projects
Commit 167e2406 authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Fix assignment operator for Operator

parent 12c26ee8
Branches
Tags
No related merge requests found
...@@ -307,7 +307,7 @@ template <class T> inline ...@@ -307,7 +307,7 @@ template <class T> inline
Operator<T>& Operator<T>::operator=(const Operator& other) { Operator<T>& Operator<T>::operator=(const Operator& other) {
BOOST_ASSERT(other.function_body_); BOOST_ASSERT(other.function_body_);
BOOST_ASSERT(other.variables_); BOOST_ASSERT(other.variables_);
function_body_.reset(other.function_body_); function_body_ = other.function_body_;
variables_.reset(other.variables_->clone()); variables_.reset(other.variables_->clone());
return *this; return *this;
} }
......
...@@ -156,7 +156,7 @@ public: ...@@ -156,7 +156,7 @@ public:
protected: protected:
explicit ParsedExpression(const Variables& variables); explicit ParsedExpression(const Variables& variables);
const boost::shared_ptr<Variables> variables_; boost::shared_ptr<Variables> variables_;
virtual ParsedExpression* clone_internal() const = 0; virtual ParsedExpression* clone_internal() const = 0;
}; };
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment