Skip to content

Commit

Permalink
Add "inline" declaration to defaultEpsilon() in Utilities.h
Browse files Browse the repository at this point in the history
To prevent warning about multiple definitions.
While working on "LazyPredator 2.0" in evoflock.
Gaol was to test compilation and unit test for "LazyPredator 1.0" -- all tests passed.
  • Loading branch information
cwreynolds committed Mar 2, 2024
1 parent fa1fc8d commit 0106222
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ inline bool withinEpsilon(float a, float b, float epsilon)
{
return std::abs(a - b) <= epsilon;
}
float defaultEpsilon() { return 0.00001; }
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// TODO 20240229 fixes in LazyPredator and TexSyn while debugging evoflock.
//float defaultEpsilon() { return 0.00001; }
inline float defaultEpsilon() { return 0.00001; }
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
inline bool withinEpsilon(float a, float b)
{
return withinEpsilon(a, b, defaultEpsilon());
Expand Down

0 comments on commit 0106222

Please sign in to comment.