From fd38c08287328d0492addccb8d8041038a49d204 Mon Sep 17 00:00:00 2001 From: kartik arcot Date: Mon, 23 Jan 2023 09:56:09 -0800 Subject: [PATCH] use transform instead of boost to_upper --- gtsam/navigation/tests/testGeographicLib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/navigation/tests/testGeographicLib.cpp b/gtsam/navigation/tests/testGeographicLib.cpp index c568c7445..9dcc7e4e8 100644 --- a/gtsam/navigation/tests/testGeographicLib.cpp +++ b/gtsam/navigation/tests/testGeographicLib.cpp @@ -23,7 +23,6 @@ #include #include -#include #include #include @@ -71,7 +70,8 @@ TEST( GeographicLib, UTM) { // Obtained by // http://geographiclib.sourceforge.net/cgi-bin/GeoConvert?input=33.87071+-84.30482000000001&zone=-3&prec=2&option=Submit auto actual = UTMUPS::EncodeZone(zone, northp); - boost::to_upper(actual); + // transform to upper case + std::transform(actual.begin(), actual.end(), actual.begin(), ::toupper); EXPECT(actual=="16N"); EXPECT_DOUBLES_EQUAL(749305.58, x, 1e-2); EXPECT_DOUBLES_EQUAL(3751090.08, y, 1e-2);