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 | |
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
-rw-r--r-- | Jamroot.jam | 2 | ||||
-rw-r--r-- | slicer/test/preprocessor.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Jamroot.jam b/Jamroot.jam index d9e20c7..7910d73 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -11,7 +11,7 @@ variant coverage : debug ; project : requirements <define>ICE_CPP11_MAPPING - <cxxstd>17 + <cxxstd>20 <visibility>hidden <linkflags>"-Wl,-z,defs,--warn-once,--gc-sections" <variant>release:<lto>on 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; |