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
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,7 @@ template <class T> inline
Operator<T>& Operator<T>::operator=(const Operator& other) {
BOOST_ASSERT(other.function_body_);
BOOST_ASSERT(other.variables_);
function_body_.reset(other.function_body_);
function_body_ = other.function_body_;
variables_.reset(other.variables_->clone());
return *this;
}
......
......@@ -156,7 +156,7 @@ public:
protected:
explicit ParsedExpression(const Variables& variables);
const boost::shared_ptr<Variables> variables_;
boost::shared_ptr<Variables> variables_;
virtual ParsedExpression* clone_internal() const = 0;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment