From 2b6724c5e3f4e4129f8bf4dd48aec13f0adf3992 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 11 Sep 2022 01:58:55 +0200 Subject: [PATCH] Fix example --- src/Core/examples/field.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/examples/field.cpp b/src/Core/examples/field.cpp index 3190a7fcb7d..110e11d0cb1 100644 --- a/src/Core/examples/field.cpp +++ b/src/Core/examples/field.cpp @@ -37,7 +37,7 @@ int main(int argc, char ** argv) std::cerr << applyVisitor(to_string, field) << std::endl; } - get(field).push_back(field); + field.get().push_back(field); std::cerr << applyVisitor(to_string, field) << std::endl; std::cerr << (field < field2) << std::endl; @@ -71,7 +71,7 @@ int main(int argc, char ** argv) size_t sum = 0; for (size_t i = 0; i < n; ++i) - sum += safeGet(array[i]).size(); + sum += array[i].safeGet().size(); watch.stop(); std::cerr << std::fixed << std::setprecision(2)