Skip to content

Commit

Permalink
Remove [=] capture when not needed.
Browse files Browse the repository at this point in the history
[=, this] is C++20 extension. A warning is issued by clang-17 at least.
  • Loading branch information
bimalgaudel committed Jan 4, 2024
1 parent a9c7e62 commit c16ecc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TiledArray/tile_op/binary_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ class BinaryWrapper {

if (perm_) return meta::invoke(op_, eval_left, eval_right, perm_);

auto op_left = [=, this](eval_t<L>& _left, eval_t<R>& _right) {
auto op_left = [this](eval_t<L>& _left, eval_t<R>& _right) {
return op_.consume_left(_left, _right);
};
auto op_right = [=, this](eval_t<L>& _left, eval_t<R>& _right) {
auto op_right = [this](eval_t<L>& _left, eval_t<R>& _right) {
return op_.consume_right(_left, _right);
};
// Override consumable
Expand Down

0 comments on commit c16ecc1

Please sign in to comment.