[ox] Replace SpanView with Span<const T>

This commit is contained in:
2024-12-01 08:41:08 -06:00
parent 1bf4f246c2
commit b14f1d5000
7 changed files with 60 additions and 128 deletions

View File

@@ -231,7 +231,7 @@ int main(int argc, const char **argv) {
oxError("Must specify test to run");
return -1;
}
auto const args = ox::SpanView{argv, static_cast<size_t>(argc)};
auto const args = ox::Span{argv, static_cast<size_t>(argc)};
ox::StringView const testName = args[1];
ox::StringView const testArg = argc >= 3 ? args[2] : nullptr;
auto const func = tests.find(testName);