From 7ed7d42f58bc6ba24324e6be14db3e6a60e46355 Mon Sep 17 00:00:00 2001 From: Alan Zhao Date: Mon, 27 Feb 2023 14:56:36 -0800 Subject: [PATCH] ICU-22298 Include in measunit.h measunit.h uses std::pair, std::make_pair, and std::move, all of which are declared in the header. This still compiles because many implementations of the C++ standard library have as a transitive dependency of other C++ standard library headers; however, these transitive includes are not guaranteed to exist and will not exist in some contexts (e.g. building against LLVM's libc++ with -fmodules). --- icu4c/source/i18n/unicode/measunit.h | 1 + 1 file changed, 1 insertion(+) diff --git a/icu4c/source/i18n/unicode/measunit.h b/icu4c/source/i18n/unicode/measunit.h index c20ca1ece3f..f7acc6990b2 100644 --- a/icu4c/source/i18n/unicode/measunit.h +++ b/icu4c/source/i18n/unicode/measunit.h @@ -19,6 +19,7 @@ #if !UCONFIG_NO_FORMATTING +#include #include "unicode/unistr.h" #include "unicode/localpointer.h"