From e524dc9766e532573712a8d7cceff5eaa090b756 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 5 Nov 2025 12:47:40 +0100 Subject: [PATCH] dtoolbase: Apply pvector libc++ workaround across the board The bug with empty vector_uchar causing a crash seems to occur on Android as well --- dtool/src/dtoolbase/pvector.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dtool/src/dtoolbase/pvector.h b/dtool/src/dtoolbase/pvector.h index 7561047add..12e7c108ef 100644 --- a/dtool/src/dtoolbase/pvector.h +++ b/dtool/src/dtoolbase/pvector.h @@ -51,13 +51,9 @@ public: pvector(pvector &&from) noexcept : base_class(std::move(from)) {}; explicit pvector(size_type n, TypeHandle type_handle = pvector_type_handle) : base_class(n, Type(), allocator(type_handle)) { } explicit pvector(size_type n, const Type &value, TypeHandle type_handle = pvector_type_handle) : base_class(n, value, allocator(type_handle)) { } -#ifdef __APPLE__ pvector(const Type *begin, const Type *end, TypeHandle type_handle = pvector_type_handle) : base_class(allocator(type_handle)) { this->insert(this->end(), begin, end); } -#else - pvector(const Type *begin, const Type *end, TypeHandle type_handle = pvector_type_handle) : base_class(begin, end, allocator(type_handle)) { } -#endif pvector(std::initializer_list init, TypeHandle type_handle = pvector_type_handle) : base_class(std::move(init), allocator(type_handle)) { } pvector &operator =(const pvector ©) {