Skip to content

Commit

Permalink
Remove some right-value references to doubles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri Rusin committed Sep 11, 2023
1 parent d469f39 commit 52eb4d6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/ioh/problem/bbob/bent_cigar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace ioh::problem::bbob
//! Evaluation method
double evaluate(const std::vector<double> &z) override
{
double&& value = bent_cigar(z);
double value = bent_cigar(z);
return value;
}

Expand Down
2 changes: 1 addition & 1 deletion include/ioh/problem/bbob/discus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace ioh::problem::bbob
//! Evaluation method
double evaluate(const std::vector<double> &z) override
{
double&& value = discus(z);
double value = discus(z);
return value;
}
//! Variables transformation method
Expand Down
2 changes: 1 addition & 1 deletion include/ioh/problem/bbob/katsuura.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace ioh::problem::bbob
//! Evaluation method
double evaluate(const std::vector<double> &z) override
{
double&& value = katsuura(z);
double value = katsuura(z);
return value;
}

Expand Down
2 changes: 1 addition & 1 deletion include/ioh/problem/bbob/rastrigin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace ioh::problem::bbob
//! Evaluation method
double evaluate(const std::vector<double> &z) override
{
double&& value = rastrigin(z);
double value = rastrigin(z);
return value;
}

Expand Down
2 changes: 1 addition & 1 deletion include/ioh/problem/bbob/schaffers10.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace ioh::problem::bbob
//! Evaluation method
double evaluate(const std::vector<double> &z) override
{
double&& value = schaffer_F7(z);
double value = schaffer_F7(z);
return value;
}

Expand Down

0 comments on commit 52eb4d6

Please sign in to comment.