Skip to content

Commit

Permalink
parallel.cpp : use std::move() on knot vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
ManifoldFR committed Oct 23, 2024
1 parent fb3cb09 commit 40bd55d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/gar/parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ std::array<problem_t, 2> splitProblemInTwo(const problem_t &problem, uint t0,

knot_t kn1_last = knots1.back(); // copy

problem_t p1(knots1, problem.nc0());
problem_t p1(std::move(knots1), problem.nc0());
p1.G0 = problem.G0;
p1.g0 = problem.g0;
p1.addParameterization(nx_t0);
Expand All @@ -48,7 +48,7 @@ std::array<problem_t, 2> splitProblemInTwo(const problem_t &problem, uint t0,
kn1_last.f.setZero();
}

problem_t p2(knots2, 0);
problem_t p2(std::move(knots2), 0);
p2.addParameterization(nx_t0);
{
knot_t &p2_first = p2.stages[0];
Expand Down

0 comments on commit 40bd55d

Please sign in to comment.