From 56d635cc152643fc0c68e1a5c00ac673ddd142e6 Mon Sep 17 00:00:00 2001 From: Iain Russell Date: Mon, 3 Apr 2023 13:38:23 +0100 Subject: [PATCH] Remove use of deprecated unary_function [MAGP-1356] --- src/common/Polyline.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Polyline.cc b/src/common/Polyline.cc index 76a117cf6..836697da9 100644 --- a/src/common/Polyline.cc +++ b/src/common/Polyline.cc @@ -107,7 +107,7 @@ struct SouthCleaner { bool operator()(PaperPoint& point) { return point.y_ < -89; } }; -struct LonFinder : std::unary_function { +struct LonFinder { LonFinder() {} bool operator()(PaperPoint& point) const { return (same(point.x_, -180.)); }