From 4b868b8922118e172e7bac75f192b0098f477a81 Mon Sep 17 00:00:00 2001 From: medithe <40990424+medithe@users.noreply.github.com> Date: Tue, 7 Aug 2018 15:08:20 +0200 Subject: [PATCH] Re-enable compile-time format-string checking Since the commit 691a7a9 compile-time string checking was accidently not possible anymore. With this change, it should be possible again. --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index ce309988..89ec63dd 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -120,7 +120,7 @@ FMT_END_NAMESPACE # endif #endif -#if FMT_USE_USER_DEFINED_LITERALS && !defined(FMT_ICC_VERSION) && \ +#if FMT_USE_USER_DEFINED_LITERALS && FMT_ICC_VERSION == 0 && \ ((FMT_GCC_VERSION >= 600 && __cplusplus >= 201402L) || \ (defined(FMT_CLANG_VERSION) && FMT_CLANG_VERSION >= 304)) # define FMT_UDL_TEMPLATE 1