From d12baf74c20ab5872433772a421154ffbb58f902 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 9 Feb 2024 09:12:38 +0000 Subject: [PATCH] Try to avoid a non-initialized warning by initializing with std::nullopt --- .../include/CGAL/AABB_tree/internal/AABB_traversal_traits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AABB_tree/include/CGAL/AABB_tree/internal/AABB_traversal_traits.h b/AABB_tree/include/CGAL/AABB_tree/internal/AABB_traversal_traits.h index 645ce1347cb2..ce9a56e15b9d 100644 --- a/AABB_tree/include/CGAL/AABB_tree/internal/AABB_traversal_traits.h +++ b/AABB_tree/include/CGAL/AABB_tree/internal/AABB_traversal_traits.h @@ -73,7 +73,7 @@ class First_intersection_traits Result; public: First_intersection_traits(const AABBTraits& traits) - : m_result(), m_traits(traits) + : m_result(std::nullopt), m_traits(traits) {} bool go_further() const { @@ -202,7 +202,7 @@ class First_primitive_traits public: First_primitive_traits(const AABBTraits& traits) : m_is_found(false) - , m_result() + , m_result(std::nullopt) , m_traits(traits) {} bool go_further() const { return !m_is_found; }