Replace gsl::span for std::span (c++20) (#7531)

* Replace gsl::span for std::span (c++20)
* Replace gsl::byte with std::byte

Co-authored-by: Bevan Weiss <bevan.weiss@gmail.com>
This commit is contained in:
Ani
2021-05-30 15:10:46 +01:00
committed by GitHub
parent f5e529db61
commit a49446c9e9
28 changed files with 82 additions and 87 deletions
+3 -2
View File
@@ -10,7 +10,8 @@
#include "Utilities/StrUtil.h"
#include "Utilities/lockless.h"
#include "Utilities/span.h"
#include <span>
LOG_CHANNEL(cellSysutil);
@@ -385,7 +386,7 @@ error_code cellSysutilGetSystemParamString(CellSysutilParamId id, vm::ptr<char>
cellSysutil.error("cellSysutilGetSystemParamString: Unknown ParamId 0x%x", id);
}
gsl::span dst(buf.get_ptr(), copy_size);
std::span dst(buf.get_ptr(), copy_size);
strcpy_trunc(dst, param_str);
return CELL_OK;
}