summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jamroot.jam2
-rw-r--r--slicer/test/preprocessor.cpp4
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;