From 91425ccb6ff0a416b67ef21eb3ecebb49ba3e748 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 6 May 2025 19:45:03 +0800 Subject: Update C++ standard to C++20 (#6980) * Correct incorrect enum usage on metal * Update C++ standard to C++20 Closes https://github.com/shader-slang/slang/issues/6945 * use bit_cast --- source/core/slang-io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core') diff --git a/source/core/slang-io.cpp b/source/core/slang-io.cpp index 5490294ca..851c70073 100644 --- a/source/core/slang-io.cpp +++ b/source/core/slang-io.cpp @@ -752,7 +752,7 @@ String Path::getRelativePath(String base, String path) auto result = std::filesystem::relative(p2, p1, ec); if (ec) return path; - return String(UnownedStringSlice(result.generic_u8string().c_str())); + return String(reinterpret_cast(result.generic_u8string().c_str())); } SlangResult Path::remove(const String& path) -- cgit v1.2.3