From a859ec49e8d53841ea962f899c890033c451e293 Mon Sep 17 00:00:00 2001
From: Thimo Neubauer <thimo@dune-project.org>
Date: Wed, 8 Dec 2004 17:19:49 +0000
Subject: [PATCH] remove default value for second parameter of allocate(), xlc
 doesn't like that

[[Imported from SVN: r1232]]
---
 common/poolallocator.hh | 2 +-
 common/sllist.hh        | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/common/poolallocator.hh b/common/poolallocator.hh
index 64c6a76aa..45c3fb5f4 100644
--- a/common/poolallocator.hh
+++ b/common/poolallocator.hh
@@ -335,7 +335,7 @@ namespace Dune
   { }
 
   template<class T, int s>
-  inline T* PoolAllocator<T,s>::allocate(std::size_t n, const T* hint=0)
+  inline T* PoolAllocator<T,s>::allocate(std::size_t n, const T* hint)
   {
     assert(n<=(Pool<T,s>::elements));
     return static_cast<T*>(memoryPool_.allocate());
diff --git a/common/sllist.hh b/common/sllist.hh
index ca3c713f8..be84e559f 100644
--- a/common/sllist.hh
+++ b/common/sllist.hh
@@ -297,12 +297,12 @@ namespace Dune
   inline void SLList<T,A>::push_back(const T& item)
   {
     if(tail_!=0) {
-      tail_->next_ = allocator_.allocate(1);
+      tail_->next_ = allocator_.allocate(1, 0);
       tail_ = tail_->next_;
       tail_->item_=item;
       tail_->next_=0;
     }else{
-      tail_=head_=allocator_.allocate(1);
+      tail_=head_=allocator_.allocate(1, 0);
       tail_->next_=0;
       tail_->item_=item;
     }
@@ -313,11 +313,11 @@ namespace Dune
   inline void SLList<T,A>::push_front(const T& item)
   {
     if(head_==0) {
-      head_ = tail_ = allocator_.allocate(1);
+      head_ = tail_ = allocator_.allocate(1, 0);
       head_->item_=item;
       head_->next_=0;
     }else{
-      Element* added = allocator_.allocate(1);
+      Element* added = allocator_.allocate(1, 0);
       added->item_=item;
       added->next_=head_;
       head_=added;
-- 
GitLab