Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get_distance_measure test failure using MSVC #1220

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading