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:
Michael Jeronimo 2019-04-30 13:47:20 -07:00 committed by William Woodall
parent 98f610c114
commit dc05a2e755

View file

@ -67,6 +67,9 @@ NodeOptions::operator=(const NodeOptions & other)
this->use_intra_process_comms_ = other.use_intra_process_comms_; this->use_intra_process_comms_ = other.use_intra_process_comms_;
this->start_parameter_services_ = other.start_parameter_services_; this->start_parameter_services_ = other.start_parameter_services_;
this->allocator_ = other.allocator_; this->allocator_ = other.allocator_;
this->allow_undeclared_parameters_ = other.allow_undeclared_parameters_;
this->automatically_declare_initial_parameters_ =
other.automatically_declare_initial_parameters_;
} }
return *this; return *this;
} }