Remove custom span and use std::span

With C++20 the custom container PS:span, which was a backport of
std::span is no longer needed.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-08-13 17:20:49 +02:00
parent 2daa5385a8
commit 2cedb48de2
62 changed files with 108 additions and 218 deletions
+2 -2
View File
@@ -79,7 +79,6 @@ that of Atlas depending on commandline parameters.
#include "ps/UserReport.h"
#include "ps/VideoMode.h"
#include "ps/XML/Xeromyces.h"
#include "ps/containers/Span.h"
#include "renderer/Renderer.h"
#include "rlinterface/RLInterface.h"
#include "scriptinterface/JSON.h"
@@ -104,6 +103,7 @@ that of Atlas depending on commandline parameters.
#include <js/Value.h>
#include <memory>
#include <optional>
#include <span>
#include <string>
#include <utility>
#include <vector>
@@ -553,7 +553,7 @@ static std::optional<DAP::Interface> CreateDAPInterface(const CmdLineArgs& args)
// moved into a helper function to ensure args is destroyed before
// exit(), which may result in a memory leak.
static void RunGameOrAtlas(const PS::span<const char* const> argv)
static void RunGameOrAtlas(const std::span<const char* const> argv)
{
const CmdLineArgs args(argv);