From b9c3bc83950efb6efab8bb4775bf0421bee474d3 Mon Sep 17 00:00:00 2001 From: Conrad Sachweh Date: Thu, 24 Jan 2019 09:54:45 +0100 Subject: [PATCH] explicit cast of tribool to bool recent change in boost 1.69 needs explicit cast https://www.boost.org/doc/libs/1_69_0/doc/html/boost/logic/tribool.html --- edge.cpp | 2 +- face.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edge.cpp b/edge.cpp index 6ed5c11..451b75d 100644 --- a/edge.cpp +++ b/edge.cpp @@ -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); } /*! diff --git a/face.cpp b/face.cpp index f361761..ab29993 100644 --- a/face.cpp +++ b/face.cpp @@ -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"