diff --git a/common/poolallocator.hh b/common/poolallocator.hh
index 21d447b2318e3c328be1854c12c3b762f050600d..dd4bff2bbbe63080e2229a7e7ea2fa5bf0d103db 100644
--- a/common/poolallocator.hh
+++ b/common/poolallocator.hh
@@ -19,7 +19,7 @@ int testPool();
 namespace Dune
 {
 
-  template<typename T, std::size_t size>
+  template<typename T, std::size_t s>
   class Pool;
 
   template<typename T, std::size_t s>
@@ -87,6 +87,7 @@ namespace Dune
     friend int ::testPool<s,T>();
 
     //friend std::ostream& std::operator<<<>(std::ostream&,Pool<T,s>&);
+    template< class, std::size_t > friend class PoolAllocator;
 
   private: