diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-09-07 02:09:28 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-09-07 02:09:28 +0100 |
commit | e69120bf13113d7e5cc5fe23df723cacc89d9b17 (patch) | |
tree | 49ffa651d224bd58342ead0a0c4e274924be4d96 /slicer | |
parent | Add comment to disable concat-namespaces linting (diff) | |
download | slicer-e69120bf13113d7e5cc5fe23df723cacc89d9b17.tar.bz2 slicer-e69120bf13113d7e5cc5fe23df723cacc89d9b17.tar.xz slicer-e69120bf13113d7e5cc5fe23df723cacc89d9b17.zip |
Update to C++20 for constexpr virtual destructors
Diffstat (limited to 'slicer')
-rw-r--r-- | slicer/test/preprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slicer/test/preprocessor.cpp b/slicer/test/preprocessor.cpp index 72afa63..506eb1e 100644 --- a/slicer/test/preprocessor.cpp +++ b/slicer/test/preprocessor.cpp @@ -18,8 +18,8 @@ unsigned int total() { const auto t = std::accumulate( - COMPONENTS_IN_TEST_ICE.begin(), COMPONENTS_IN_TEST_ICE.end(), 0U, [](auto & t, auto && c) { - return t += c.second; + COMPONENTS_IN_TEST_ICE.begin(), COMPONENTS_IN_TEST_ICE.end(), 0U, [](const auto & t, const auto & c) { + return t + c.second; }); BOOST_CHECK_EQUAL(49, t); return t; |