[distance] Fix std::min() call with msvc.
This commit is contained in:
parent
420e165376
commit
81ab3a1e7c
@ -502,16 +502,14 @@ private:
|
||||
// the segment lies above the box
|
||||
if (geometry::get<1>(p0) > geometry::get<1>(top_right))
|
||||
{
|
||||
result =
|
||||
std::min(
|
||||
above_of_box
|
||||
<
|
||||
LessEqual
|
||||
>::apply(p0, p1, top_left, sb_strategy),
|
||||
above_of_box
|
||||
<
|
||||
GreaterEqual
|
||||
>::apply(p1, p0, top_right, sb_strategy));
|
||||
result = (std::min)(above_of_box
|
||||
<
|
||||
LessEqual
|
||||
>::apply(p0, p1, top_left, sb_strategy),
|
||||
above_of_box
|
||||
<
|
||||
GreaterEqual
|
||||
>::apply(p1, p0, top_right, sb_strategy));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user