tests: Fix a Boost header deprecation warning.
authorUwe Hermann <uwe@hermann-uwe.de>
Sat, 2 May 2020 22:47:37 +0000 (00:47 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Sat, 2 May 2020 22:47:37 +0000 (00:47 +0200)
test/view/ruler.cpp

index 5cef38d5ce20211c1ca8e329ca8e05f0a62629a1..4a4eac8f34d5822cacec1b622c4fe8c8f9f047bc 100644 (file)
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <boost/version.hpp>
+#if BOOST_VERSION >= 107100 // 1.71 deprecated the old header location.
+#include <boost/test/tools/floating_point_comparison.hpp>
+#else
 #include <boost/test/floating_point_comparison.hpp>
+#endif
 #include <boost/test/unit_test.hpp>
 
 #include "pv/views/trace/ruler.hpp"