From 6004d0094758e7f80b5c9661164d7f6ac6d466d4 Mon Sep 17 00:00:00 2001 From: Stephen Berry Date: Wed, 26 Oct 2022 15:44:53 -0500 Subject: [PATCH] Added issue link for MSVC bug --- include/glaze/json/write.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/glaze/json/write.hpp b/include/glaze/json/write.hpp index 6567b0df9e..fe0d10ebda 100644 --- a/include/glaze/json/write.hpp +++ b/include/glaze/json/write.hpp @@ -316,7 +316,8 @@ namespace glz else { write::op(std::get(value), std::forward(args)...); } - // MSVC bug if this logic is in the constexpr + // MSVC bug if this logic is in the `if constexpr` + // https://developercommunity.visualstudio.com/t/stdc20-fatal-error-c1004-unexpected-end-of-file-fo/1509806 constexpr bool needs_comma = I < N - 1; if constexpr (needs_comma) { dump<','>(std::forward(args)...);