mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Add helper to wrap result of std::filesystem::path::u8string() (#2535)
In C++17 the return type of std::filesystem::path::u8string() is std::string, but in C++20 the return type changed to std::u8string. Add a helper to copy a std::u8string to a std::string, to be used when a std::string is required. This fixes the build for C++20.
This commit is contained in:
@@ -17,9 +17,10 @@
|
||||
#include <filesystem>
|
||||
|
||||
#include "harness/testHarness.h"
|
||||
#include "harness/stringHelpers.h"
|
||||
|
||||
std::string spvBinariesPath =
|
||||
(std::filesystem::path("compiler") / "spirv_bin").u8string();
|
||||
to_string((std::filesystem::path("compiler") / "spirv_bin").u8string());
|
||||
const std::string spvBinariesPathArg = "--spirv-binaries-path";
|
||||
|
||||
void printUsage()
|
||||
|
||||
Reference in New Issue
Block a user