src/test/mds/TestQuiesceDb.cc:512:10: error: operation on 'q' may be undefined [-Werror=sequence-point]
Signed-off-by: Samuel Just <sjust@redhat.com>
// we use parameter pack expansion as part of the brace initializer
// to perform sequential calculation of the
+
+ auto f = [&q](const auto &args) {
+ q = div(q.quot, args.size());
+ return args.at(q.rem);
+ };
+
auto apply_tuple = std::tuple<V const &...> {
- (q = div(q.quot, array_args.size()), array_args.at(q.rem))
+ f(array_args)
...
};