Skip to content

Correct move semantics in Measurement constructor

Christian Gumpert requested to merge ACTS-61_move_semantics into master

Instead of requiring a rvalue as parameter in the constructor take the covariance matrix by value. The call site can then choose to call the constructor using pass-by-copy semantics (in case the user wants to reuse the provided covariance matrix) or move semantics. The unique pointer for the covariance matrix in the stored parameter set object is initialized by moving the provided covariance matrix object to avoid an unnecessary copy.

Closes ACTS-61

Merge request reports