summaryrefslogtreecommitdiff
path: root/dev-cpp/ctemplate/files/ctemplate-2.4-fix_cxx20.patch
blob: a0adc59a8727066c6e30848e44d7605c24fff8bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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));