We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ce518 commit cf3a333Copy full SHA for cf3a333
stl/inc/xutility
@@ -6298,8 +6298,9 @@ namespace ranges {
6298
{
6299
if constexpr (_Elements_are_2_bytes) {
6300
_STL_INTERNAL_STATIC_ASSERT(_Is_sized);
6301
- _Result =
6302
- _CSTD wmemchr(_First_ptr, static_cast<wchar_t>(_Val), static_cast<size_t>(_Last - _First));
+ _Result = reinterpret_cast<_Ptr_t>(
+ const_cast<wchar_t*>(_CSTD wmemchr(reinterpret_cast<const wchar_t*>(_First_ptr),
6303
+ static_cast<wchar_t>(_Val), static_cast<size_t>(_Last - _First))));
6304
} else {
6305
_STL_INTERNAL_STATIC_ASSERT(_Elements_are_1_byte);
6306
size_t _Count;
0 commit comments