]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson: fix lambda captures of non-variables 32494/head
authorRonen Friedman <rfriedma@redhat.com>
Mon, 6 Jan 2020 07:46:49 +0000 (09:46 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 7 Jan 2020 10:39:42 +0000 (12:39 +0200)
commit24694e2a064e4b4ce5c4bbefcf4e57744e1af2a1
tree00e98ec5e1f3fee33a3ba3e2b9b7bae06dcd4f15
parentf81054d5ce0538e35dcdbf6d9bad66095cb21e72
crimson: fix lambda captures of non-variables

One cannot just capture a structured binding "non-variable".
(From the C++ standard, $8.4.5.2:
"If a lambda-expression [...] captures a structured binding (explicitly or implicitly),
the program is ill-formed.")

Co-authored-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/crimson/osd/main.cc
src/crimson/osd/pg.cc
src/crimson/osd/pg.h
src/crimson/osd/shard_services.cc