Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / histogram / examples / guide_stdlib_algorithms.cpp
index c010a2f..5258178 100644 (file)
@@ -36,7 +36,7 @@ int main() {
   assert(h1.at(4) == 0.00);
 
   // use any_of to check if any cell values are smaller than 0.1,
-  auto b = std::any_of(ind.begin(), ind.end(), [](const auto& x) { return *x < 0.1; });
+  auto b = std::any_of(ind.begin(), ind.end(), [](const auto& x) { return x < 0.1; });
   assert(b == false); // under- and overflow cells are zero, but skipped
 
   // find minimum element