Files
gentoo/dev-cpp/ctemplate/files/ctemplate-2.4-fix_cxx20.patch
Nicolas PARLANT 3d0a57cb43 dev-cpp/ctemplate: fix gcc-16/cxx20, update PYTHON_COMPAT
python is always required (src/htmlparser/generate_fsm.py)

Closes: https://bugs.gentoo.org/967254
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/138
Merges: https://codeberg.org/gentoo/gentoo/pulls/138
Signed-off-by: Sam James <sam@gentoo.org>
2026-02-25 12:06:51 +00:00

15 lines
664 B
Diff

PR merged https://github.com/OlafvdSpek/ctemplate/pull/143.patch
gcc-16/C++20, bug 967254, fix: remove hint, removed typedef
--- a/src/base/arena-inl.h
+++ b/src/base/arena-inl.h
@@ -93,8 +93,7 @@ template <class T, class C> class ArenaAllocator {
ArenaAllocator(C* arena) : arena_(arena) { } // NOLINT
~ArenaAllocator() { }
- pointer allocate(size_type n,
- std::allocator<void>::const_pointer /*hint*/ = 0) {
+ pointer allocate(size_type n) {
assert(arena_ && "No arena to allocate from!");
return reinterpret_cast<T*>(arena_->AllocAligned(n * sizeof(T),
kAlignment));