From 722d04d49bbc15ca135c203b8212b7e1dbc469cd Mon Sep 17 00:00:00 2001 From: tfwillems Date: Mon, 18 Dec 2017 19:28:22 -0500 Subject: [PATCH] Resolve abs ambiguous function issue --- src/stutter_model.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stutter_model.h b/src/stutter_model.h index 55ae226..bcdc619 100644 --- a/src/stutter_model.h +++ b/src/stutter_model.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -60,8 +61,8 @@ class StutterModel { } bool parameters_within_threshold(StutterModel& other, double max_diff){ - return (std::abs(other.in_geom_ - in_geom_) < max_diff && std::abs(other.in_up_ - in_up_) < max_diff && std::abs(other.in_down_ - in_down_) < max_diff && - std::abs(other.out_geom_ - out_geom_) < max_diff && std::abs(other.out_up_ - out_up_) < max_diff && std::abs(other.out_down_ - out_down_) < max_diff); + return (abs(other.in_geom_ - in_geom_) < max_diff && abs(other.in_up_ - in_up_) < max_diff && abs(other.in_down_ - in_down_) < max_diff && + abs(other.out_geom_ - out_geom_) < max_diff && abs(other.out_up_ - out_up_) < max_diff && abs(other.out_down_ - out_down_) < max_diff); } friend std::ostream& operator<< (std::ostream &out, StutterModel& model);