From 1305cbeb6f68cd8f0b587ab6b7664d5e51095378 Mon Sep 17 00:00:00 2001 From: "Riccardo Ghetta (larix)" Date: Wed, 23 Sep 2020 18:55:41 +0200 Subject: [PATCH] Fix MSVC2019 error C2049 when compiling with /clr (#1897) 'fmt::v7': non-inline namespace cannot be reopened as inline --- 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 caef2335..9f030e38 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 \ } \