Skip to content

Commit

Permalink
remove copy of ConstVectorMTJ
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Oct 30, 2024
1 parent 1488491 commit 84b0ce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/EventData/VectorMultiTrajectory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,10 @@ class ConstVectorMultiTrajectory final
ConstVectorMultiTrajectory(const ConstVectorMultiTrajectory& other)
: VectorMultiTrajectoryBase{other} {}

ConstVectorMultiTrajectory(const VectorMultiTrajectory& other)
explicit ConstVectorMultiTrajectory(const VectorMultiTrajectory& other)
: VectorMultiTrajectoryBase{other} {}

ConstVectorMultiTrajectory(VectorMultiTrajectory&& other)
explicit ConstVectorMultiTrajectory(VectorMultiTrajectory&& other)
: VectorMultiTrajectoryBase{std::move(other)} {}

ConstVectorMultiTrajectory(ConstVectorMultiTrajectory&&) = default;
Expand Down
6 changes: 1 addition & 5 deletions Tests/UnitTests/Core/EventData/MultiTrajectoryTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,8 @@ BOOST_AUTO_TEST_CASE(ConstCorrectness) {
// ctsp.predicted().setRandom();
}

// is this something we actually want?
ConstVectorMultiTrajectory ct = t;
BOOST_CHECK_EQUAL(ct.size(), t.size());

ConstVectorMultiTrajectory ctm{std::move(t)};
BOOST_CHECK_EQUAL(ctm.size(), ct.size());
BOOST_CHECK_EQUAL(ctm.size(), t.size());

{
static_assert(
Expand Down

0 comments on commit 84b0ce2

Please sign in to comment.