From 7d1aeaa601436461e68f98f5f20a456650e9febd Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Thu, 31 Dec 2015 17:28:11 +0000 Subject: [PATCH] warnings --- contrib/other-builds/moses2/MemPool.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/contrib/other-builds/moses2/MemPool.h b/contrib/other-builds/moses2/MemPool.h index ffd6a134f..6947b3afc 100644 --- a/contrib/other-builds/moses2/MemPool.h +++ b/contrib/other-builds/moses2/MemPool.h @@ -79,7 +79,6 @@ class MemPool { //////////////////////////////////////////////////////////////////////////////////////////////// template class ObjectPoolContiguous { - friend std::ostream& operator<<(std::ostream &, const ObjectPoolContiguous &); public: ObjectPoolContiguous(std::size_t initSize = 100000) @@ -152,16 +151,6 @@ class ObjectPoolContiguous { ObjectPoolContiguous &operator=(const ObjectPoolContiguous &); }; -template -std::ostream& operator<<(std::ostream &out, const ObjectPoolContiguous &obj) -{ - for (size_t i = 0; i < obj.size(); ++i) { - T &ele = obj.get(i); - out << ele; - } - return out; -} - ////////////////////////////////////////////////////////////////////////////////////////// template class MemPoolAllocator