Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation with /std:c++20 and newer on MSVC #57

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

AlpyneDreams
Copy link
Contributor

When compiling for C++20 or newer on MSVC (and possibly other compilers), <sstream> is not automatically included with the Vulkan headers and NVRHI fails to compile. This is because vulkan_to_string.hpp uses <format> instead of <sstream> when it's supported.

This pull request simply includes <sstream> in every translation unit where std::stringstream is needed.

Copy link

github-actions bot commented Sep 2, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@AlpyneDreams
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@apanteleev apanteleev merged commit 8733f53 into NVIDIAGameWorks:main Sep 3, 2024
5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants