From e7ea728ec6c80eb3a7564f9c721563c49d744c51 Mon Sep 17 00:00:00 2001 From: "J. Daniel Smith" Date: Mon, 21 Aug 2023 11:43:25 -0400 Subject: [PATCH] reduce differences between cpp17 and main branches (#576) --- UnitTest/pch.h | 1 + modules/c++/nitf/include/nitf/SubWindow.hpp | 11 ----------- modules/c++/nitf/include/nitf/System.hpp | 4 ---- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/UnitTest/pch.h b/UnitTest/pch.h index c624646df..37e984a9e 100644 --- a/UnitTest/pch.h +++ b/UnitTest/pch.h @@ -13,6 +13,7 @@ #define NOMINMAX #pragma warning(push) #pragma warning(disable: 5039) // '...': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. +#pragma warning(disable: 5105) // macro expansion producing '...' has undefined behavior #include #pragma warning(pop) #pragma comment(lib, "ws2_32") diff --git a/modules/c++/nitf/include/nitf/SubWindow.hpp b/modules/c++/nitf/include/nitf/SubWindow.hpp index 241cf7513..485d952aa 100644 --- a/modules/c++/nitf/include/nitf/SubWindow.hpp +++ b/modules/c++/nitf/include/nitf/SubWindow.hpp @@ -119,18 +119,7 @@ DECLARE_CLASS(SubWindow) std::optional> bandList; }; -#if CODA_OSS_cpp14 -// This template