mirror of https://github.com/mono/CppSharp.git
Browse Source
On Windows 2022 "vector" module deconstructor of the `vector` is the following: ```C++ _CONSTEXPR20 ~vector() noexcept { _Tidy(); #if _ITERATOR_DEBUG_LEVEL != 0 auto&& _Alproxy = _GET_PROXY_ALLOCATOR(_Alty, _Getal()); _Delete_plain_internal(_Alproxy, _STD exchange(_Mypair._Myval2._Myproxy, nullptr)); #endif // _ITERATOR_DEBUG_LEVEL != 0 } ``` When debugging configuration is enabled, internals here report an error for NamespacesDerived.Native. A fix is to add Constructor and Copy Constructor to the NamespacesDerived.h `CustomAllocator`. Windows manual seems to want even more to be defined, but I leave it here. https://learn.microsoft.com/en-us/cpp/standard-library/allocators?view=msvc-170pull/1887/head
1 changed files with 4 additions and 0 deletions
Loading…
Reference in new issue