The name of the initial branch for new projects is now "main" instead of "master". Existing projects remain unchanged. More information:

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

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
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)}
......@@ -78,7 +78,7 @@ namespace elsa
* \param[in] vector that is used for initializing the data
explicit DataHandlerCPU(DataVector_t vector);
explicit DataHandlerCPU(DataVector_t const& vector);
/// copy constructor
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