mirror of
https://github.com/reactos/reactos.git
synced 2025-03-01 03:45:16 +00:00
[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**'
This commit is contained in:
parent
47e3f49e52
commit
f9dc185ede
1 changed files with 1 additions and 1 deletions
|
@ -1870,7 +1870,7 @@ c_string_character_source<Character> __cdecl make_c_string_character_source(
|
|||
EndPointer const end
|
||||
) throw()
|
||||
{
|
||||
return c_string_character_source<Character>(string, const_cast<Character const**>(end));
|
||||
return c_string_character_source<Character>(string, (Character const**)(end));
|
||||
}
|
||||
|
||||
template <typename Integer, typename Character, typename EndPointer>
|
||||
|
|
Loading…
Reference in a new issue