3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-17 23:49:29 +00:00

Zero array for for MSVC

This commit is contained in:
Miodrag Milanovic 2026-05-13 12:05:13 +02:00
parent 1ef6311e5b
commit 105011a53b

View file

@ -441,7 +441,8 @@ public:
private:
std::string_view fmt;
bool has_escapes = false;
FoundFormatSpec specs[sizeof...(Args)] = {};
// Making array at least size of one to make MSVC happy and strict to standards
FoundFormatSpec specs[sizeof...(Args) ? sizeof...(Args) : 1] = {};
};
template <typename T> struct WrapType { using type = T; };