From 12e35b1367fb93e107827fbd2043d6df3f592a23 Mon Sep 17 00:00:00 2001 From: kartik arcot Date: Wed, 18 Jan 2023 15:20:45 -0800 Subject: [PATCH] make temp variable std optional --- gtsam_unstable/slam/SmartRangeFactor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam_unstable/slam/SmartRangeFactor.h b/gtsam_unstable/slam/SmartRangeFactor.h index d512ed85a..17270f392 100644 --- a/gtsam_unstable/slam/SmartRangeFactor.h +++ b/gtsam_unstable/slam/SmartRangeFactor.h @@ -107,7 +107,7 @@ class SmartRangeFactor: public NoiseModelFactor { Circle2 circle1 = circles.front(); std::optional best_fh; - auto bestCircle2 = boost::make_optional(false, circle1); // fixes issue #38 + std::optional bestCircle2 = std::nullopt; // fixes issue #38 // loop over all circles for (const Circle2& it : circles) {