Skip to content

Commit

Permalink
[issue454] Move condition in NegatedAxiom constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
salome-eriksson committed Feb 9, 2024
1 parent 69c1872 commit 7216ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search/tasks/negated_axioms_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct NegatedAxiom {
FactPair head;
std::vector<FactPair> condition;

// TODO: move constructor?
NegatedAxiom(FactPair head, std::vector<FactPair> condition)
// TODO: clang suggested moving the second argument, is this correct? (clang doesn't complain at least :))
NegatedAxiom(FactPair head, std::vector<FactPair> &&condition)
: head(head), condition(condition) {}
};

Expand Down

0 comments on commit 7216ab4

Please sign in to comment.