Skip to content

Commit

Permalink
Make redundant ctors for clang-12
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater committed Sep 25, 2024
1 parent bba2dd6 commit 3095381
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sanitize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:
jobs:
build:
name: "Sanitize"
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down
6 changes: 5 additions & 1 deletion arbor/cv_policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ struct cvp_cv_policy_plus {
return os;
}

cvp_cv_policy_plus(const cv_policy& lhs, const cv_policy& rhs): lhs_{lhs}, rhs_(rhs) {}
// TODO This is needed seemingly only for older compilers
cvp_cv_policy_plus(cv_policy lhs, cv_policy rhs): lhs_{std::move(lhs)}, rhs_(std::move(rhs)) {}

cv_policy lhs_, rhs_;
};
Expand All @@ -63,6 +64,9 @@ struct cvp_cv_policy_bar {
return os;
}

// TODO This is needed seemingly only for older compilers
cvp_cv_policy_bar(cv_policy lhs, cv_policy rhs): lhs_{std::move(lhs)}, rhs_(std::move(rhs)) {}

cv_policy lhs_, rhs_;
};

Expand Down

0 comments on commit 3095381

Please sign in to comment.