mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:04:06 +00:00
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:
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user