Merge pull request #1013 from tinko92/fix/overlay-identical-branches

Fixes warning with -Wduplicated-branches in overlay for union (issue #443).
This commit is contained in:
Vissarion Fisikopoulos 2022-06-23 13:57:11 +03:00 committed by GitHub
commit 6d57aedf7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,15 +389,18 @@ std::cout << "traverse" << std::endl;
// it can be returned or an exception can be thrown.
return add_rings<GeometryOut>(selected_ring_properties, geometry1, geometry2, rings, out,
strategy,
OverlayType == overlay_union ?
#if defined(BOOST_GEOMETRY_UNION_THROW_INVALID_OUTPUT_EXCEPTION)
OverlayType == overlay_union ?
add_rings_throw_if_reversed
: add_rings_ignore_unordered
#elif defined(BOOST_GEOMETRY_UNION_RETURN_INVALID)
OverlayType == overlay_union ?
add_rings_add_unordered
: add_rings_ignore_unordered
#else
add_rings_ignore_unordered
#endif
: add_rings_ignore_unordered);
);
}
template <typename RobustPolicy, typename OutputIterator, typename Strategy>