build: switch to C++17
Change-Id: Ie68020a04b7e20b74778b6d0370544ded55c5e26
diff --git a/tests/daemon/table/cs-fixture.hpp b/tests/daemon/table/cs-fixture.hpp
index 0dced9c..82fbb7e 100644
--- a/tests/daemon/table/cs-fixture.hpp
+++ b/tests/daemon/table/cs-fixture.hpp
@@ -92,12 +92,12 @@
size_t
erase(const Name& prefix, size_t limit)
{
- optional<size_t> nErased;
- cs.erase(prefix, limit, [&] (size_t nErased1) { nErased = nErased1; });
+ std::optional<size_t> nErased;
+ cs.erase(prefix, limit, [&] (size_t n) { nErased = n; });
// current Cs::erase implementation is synchronous
// if callback was not invoked, bad_optional_access would occur
- return *nErased;
+ return nErased.value();
}
protected: