Skip to content

Commit f9dc185

Browse files
committed
[UCRT] Use a C cast instead of const_cast for GCC
This is because GCC will generate errors for both const_cast and static_cast depending on the template parameter: - With const_cast: error: invalid 'const_cast' from type 'std::nullptr_t' to type 'const wchar_t**' - With static_cast: error: invalid 'static_cast' from type 'wchar_t** const' to type 'const wchar_t**'
1 parent 47e3f49 commit f9dc185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/lib/ucrt/inc/corecrt_internal_strtox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,7 @@ c_string_character_source<Character> __cdecl make_c_string_character_source(
18701870
EndPointer const end
18711871
) throw()
18721872
{
1873-
return c_string_character_source<Character>(string, const_cast<Character const**>(end));
1873+
return c_string_character_source<Character>(string, (Character const**)(end));
18741874
}
18751875

18761876
template <typename Integer, typename Character, typename EndPointer>

0 commit comments

Comments
 (0)