diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-05-06 19:45:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-06 19:45:03 +0800 |
| commit | 91425ccb6ff0a416b67ef21eb3ecebb49ba3e748 (patch) | |
| tree | d4823b8bb2c68faaef38e48693432603eaa59068 /source/core | |
| parent | 480369a302b15749aafc82feb001fa23db8edbd6 (diff) | |
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
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<const char*>(result.generic_u8string().c_str())); } SlangResult Path::remove(const String& path) |
