From e5652fc1141cbd33a9ce6c16e5cf2e3124f71ee8 Mon Sep 17 00:00:00 2001 From: rglarix Date: Fri, 18 Sep 2020 17:38:31 +0200 Subject: [PATCH] visual studio 2019 gives error C2049 ('fmt::v7': non-inline namespace cannot be reopened as inline) when compiling fmt with /clr) --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index caef2335a114..9f030e383c7a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -180,7 +180,7 @@ #ifndef FMT_BEGIN_NAMESPACE # if FMT_HAS_FEATURE(cxx_inline_namespaces) || FMT_GCC_VERSION >= 404 || \ - FMT_MSC_VER >= 1900 + (FMT_MSC_VER >= 1900 && !_MANAGED) # define FMT_INLINE_NAMESPACE inline namespace # define FMT_END_NAMESPACE \ } \