Skip to content

Commit

Permalink
Merge pull request #1220 from FantasqueX/fix-msvc-get-distance-measur…
Browse files Browse the repository at this point in the history
…e-test

Fix get_distance_measure test failure using MSVC
  • Loading branch information
vissarion authored Jan 12, 2024
2 parents fa36235 + a12a36f commit 3238ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/algorithms/overlay/get_distance_measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ void test_get_distance_measure()
do_test<Point>("simplex_left", {1.0, 0.0}, {1.0, 1.0}, {0.9, 0.5}, 1);
do_test<Point>("simplex_right", {1.0, 0.0}, {1.0, 1.0}, {1.1, 0.5}, -1);

bool const is_float = std::is_same<coor_t, float>::value;
bool const is_double = std::is_same<coor_t, double>::value;
bool const is_float = std::is_floating_point<coor_t>::value && sizeof(coor_t) == 4;
bool const is_double = std::is_floating_point<coor_t>::value && sizeof(coor_t) == 8;

// The issue 1183 where get_distance_measure failed for these coordinates.
std::string const case_id = "issue_1183_";
Expand Down

0 comments on commit 3238ac9

Please sign in to comment.