Skip to content

Commit

Permalink
Resolve abs ambiguous function issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tfwillems committed Dec 19, 2017
1 parent 9ff558d commit 722d04d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/stutter_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <algorithm>
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include <map>
#include <vector>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 722d04d

Please sign in to comment.