diff --git a/M6502/HarteTest_6502/checker_t.cpp b/M6502/HarteTest_6502/checker_t.cpp index 6323dee..95d9d67 100644 --- a/M6502/HarteTest_6502/checker_t.cpp +++ b/M6502/HarteTest_6502/checker_t.cpp @@ -150,9 +150,9 @@ bool checker_t::checkState(test_t test) { const auto actual_value = std::get<1>(actual); check("Cycle value", expected_value, actual_value); - const auto expected_action = std::string_view(*expected_data); - const auto& actual_action = std::get<2>(actual); - check("Cycle action", expected_action, std::string_view(actual_action)); + const auto expected_action = (*expected_data).get_string(); + const auto actual_action = std::get<2>(actual); + check("Cycle action", expected_action.value_unsafe(), actual_action); } if (!m_messages.empty()) return false; diff --git a/M6502/HarteTest_6502/cycle_t.h b/M6502/HarteTest_6502/cycle_t.h index 9449b71..02ef863 100644 --- a/M6502/HarteTest_6502/cycle_t.h +++ b/M6502/HarteTest_6502/cycle_t.h @@ -11,5 +11,5 @@ public: cycle_t(const simdjson::dom::array input) noexcept : byte_t(input) {} - [[nodiscard]] auto action() const noexcept { return std::string(std::string_view(at(2))); } + [[nodiscard]] auto action() const noexcept { return at(2).get_string(); } };