mirror of https://github.com/CGAL/cgal
Try to avoid a non-initialized warning by initializing with std::nullopt
This commit is contained in:
parent
790d9ca8be
commit
d12baf74c2
|
|
@ -73,7 +73,7 @@ public:
|
|||
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; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue