Skip to content

Commit

Permalink
explicit cast of tribool to bool
Browse files Browse the repository at this point in the history
recent change in boost 1.69 needs explicit cast
https://www.boost.org/doc/libs/1_69_0/doc/html/boost/logic/tribool.html
  • Loading branch information
conrad784 authored and Pseudomanifold committed Jan 24, 2019
1 parent 750b1ed commit b9c3bc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ bool edge::is_on_boundary()
if(boost::logic::indeterminate(boundary))
boundary = (f == NULL) || (g == NULL);

return(boundary == true);
return(bool(boundary) == true);
}

/*!
Expand Down
2 changes: 1 addition & 1 deletion face.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ bool face::is_obtuse()
obtuse = (a*a+b*b < c*c) || (b*b* + c*c < a*a) || (c*c + a*a < b*b);
}

return(obtuse == true);
return(bool(obtuse) == true);
}

} // end of namespace "psalm"

0 comments on commit b9c3bc8

Please sign in to comment.