Skip to content
Snippets Groups Projects
Commit 49af4cb5 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Fix Value::operator=.

    * src/command/value.cpp: operator= should assign this.
parent bcaee45d
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,11 @@ namespace dynamicgraph { ...@@ -178,7 +178,11 @@ namespace dynamicgraph {
Value Value::operator=(const Value& value) Value Value::operator=(const Value& value)
{ {
return Value (value); type_ = value.type_;
void** ptValue = const_cast<void**>(&value_);
*ptValue = copyValue(value);
return *this;
} }
const EitherType Value::value() const const EitherType Value::value() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment