Add assignment of parameter-related fields in node options constructor (#708)
* Add assignment of missing parameter-related fields in node options copy constructor. The allow_undeclared_parameters and automatically_declare_initial_parameters fields of the node options class were not assigned in the assignment operator, resulting in an incorrect copy of the node options object, which also indirectly affects the copy constructor. Signed-off-by: Michael Jeronimo <michael.jeronimo@intel.com> * Run linters
This commit is contained in:
parent
98f610c114
commit
dc05a2e755
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ NodeOptions::operator=(const NodeOptions & other)
|
|||
this->use_intra_process_comms_ = other.use_intra_process_comms_;
|
||||
this->start_parameter_services_ = other.start_parameter_services_;
|
||||
this->allocator_ = other.allocator_;
|
||||
this->allow_undeclared_parameters_ = other.allow_undeclared_parameters_;
|
||||
this->automatically_declare_initial_parameters_ =
|
||||
other.automatically_declare_initial_parameters_;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue