Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@igem0n
Copy link

@igem0n igem0n commented Dec 3, 2025

Fixes build when compiler refuses to cast 0 int literal to std::string

Fixes build when compiler refuses to cast 0 int literal to std::string
@scenarnick
Copy link
Collaborator

Can you please elaborate which compilers fail on this one? Might be helpful to find other, similar places in code.

@igem0n
Copy link
Author

igem0n commented Dec 4, 2025

I think this happens because std23 is enabled.
From cppreference:

basic_string( std::nullptr_t ) = delete; (8) (since C++23)

CMAKE_GENERATOR_TOOLSET=v143
C++ Standard 23 with extensions OFF
Windows SDK version 10.0.26100.0 to target Windows 10.0.26200
The C compiler identification is MSVC 19.44.35221.0
The CXX compiler identification is MSVC 19.44.35221.0

@scenarnick
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants