11.08., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit 62b45b6d authored by Jens Petit's avatar Jens Petit

Pass-by-value of Eigen matrix (#40)

parent f8f6fc17
Pipeline #206655 passed with stages
in 6 minutes and 13 seconds
...@@ -13,7 +13,7 @@ namespace elsa ...@@ -13,7 +13,7 @@ namespace elsa
} }
template <typename data_t> template <typename data_t>
DataHandlerCPU<data_t>::DataHandlerCPU(DataVector_t vector) DataHandlerCPU<data_t>::DataHandlerCPU(DataVector_t const& vector)
: _data{std::make_shared<DataVector_t>(vector)} : _data{std::make_shared<DataVector_t>(vector)}
{ {
} }
......
...@@ -78,7 +78,7 @@ namespace elsa ...@@ -78,7 +78,7 @@ namespace elsa
* *
* \param[in] vector that is used for initializing the data * \param[in] vector that is used for initializing the data
*/ */
explicit DataHandlerCPU(DataVector_t vector); explicit DataHandlerCPU(DataVector_t const& vector);
/// copy constructor /// copy constructor
DataHandlerCPU(const DataHandlerCPU<data_t>& other); DataHandlerCPU(const DataHandlerCPU<data_t>& other);
......
Markdown is supported
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