diff --git a/src/utils.hh b/src/utils.hh index c8bb70f5..ecbd2449 100644 --- a/src/utils.hh +++ b/src/utils.hh @@ -132,7 +132,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;