From f54fac030325e9ed0c0555c09254b56979c13c70 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 17 Jun 2019 23:42:48 -0700 Subject: [PATCH] utils.hh: work around MSVC STL bug --- src/utils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.hh b/src/utils.hh index 7834837e..75129556 100644 --- a/src/utils.hh +++ b/src/utils.hh @@ -144,7 +144,7 @@ public: template struct Vec { std::unique_ptr a; int s = 0; -#if !(__clang__ || __GNUC__ > 7 || __GNUC__ == 7 && __GNUC_MINOR__ >= 4) +#if !(__clang__ || __GNUC__ > 7 || __GNUC__ == 7 && __GNUC_MINOR__ >= 4) || defined(_WIN32) // Work around a bug in GCC<7.4 that optional would not be // construtible. Vec() = default;