Fix build on Linux

This commit is contained in:
2021-12-13 10:03:59 +00:00
parent 5b64f9670f
commit b5ef1aa7f0
4 changed files with 6 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
//
#include <array>
#include <cassert>
#include <iostream>
#include <string>
#include <variant>

View File

@@ -3,6 +3,7 @@
//
#include <array>
#include <cassert>
#include <iostream>
#include <string>
#include <utility>
@@ -191,9 +192,8 @@ private:
void set(Operand const& dest, Int value)
{
if (std::holds_alternative<Register>(dest)) {
registers_[// NOLINT(cppcoreguidelines-pro-bounds-constant-array-index)
static_cast<unsigned>(std::get<Register>(dest))] =
value;
registers_[ // NOLINT(cppcoreguidelines-pro-bounds-constant-array-index)
static_cast<unsigned>(std::get<Register>(dest))] = value;
}
}

View File

@@ -3,6 +3,7 @@
//
#include <iostream>
#include <numeric>
#include <regex>
#include <set>
#include <string>

View File

@@ -3,6 +3,7 @@
//
#include <iostream>
#include <numeric>
#include <regex>
#include <set>
#include <string>