-
-
Notifications
You must be signed in to change notification settings - Fork 244
Closed
Milestone
Description
- axmol version: dev
- devices test on:
- developing environments
- NDK version: r23c
- Xcode version: 14.2+
- Visual Studio:
- VS version: 2022 (17.9+)
- MSVC version: 19.39+
- Windows SDK version: 10.0.22621.0+
- cmake version:
Steps to Reproduce:
There are compile issues about type conversation to uint16_t* for the following functions after going to the vector.hpp
template <typename _Ty = uint16_t, std::enable_if_t<is_index_format_type_v<_Ty>, int> = 0>
const _Ty* begin() const
{
return (const _Ty*)_buffer.begin();
}
template <typename _Ty = uint16_t, std::enable_if_t<is_index_format_type_v<_Ty>, int> = 0>
_Ty* begin()
{
return (_Ty*)_buffer.begin();
}
template <typename _Ty = uint16_t, std::enable_if_t<is_index_format_type_v<_Ty>, int> = 0>
_Ty* erase(_Ty* first, _Ty* last)
{
return (_Ty*)_buffer.erase((uint8_t*)first, (uint8_t*)last);
}
I do not have issue if use _buffer.begin()._Ptr and _buffer.erase((uint8_t*)first, (uint8_t*)last)._Ptr .
There should be type cast operator for sequence_iterator to my understand or returning through the _Ptr explicitly
Metadata
Metadata
Assignees
Labels
No labels