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:
parent
1ef6311e5b
commit
105011a53b
1 changed files with 2 additions and 1 deletions
|
|
@ -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; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue