mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +03:00
warnings
This commit is contained in:
parent
6435f15a14
commit
7d1aeaa601
@ -79,7 +79,6 @@ class MemPool {
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
template <typename T>
|
||||
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 <typename T>
|
||||
std::ostream& operator<<(std::ostream &out, const ObjectPoolContiguous<T> &obj)
|
||||
{
|
||||
for (size_t i = 0; i < obj.size(); ++i) {
|
||||
T &ele = obj.get(i);
|
||||
out << ele;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
template <typename T>
|
||||
class MemPoolAllocator
|
||||
|
Loading…
Reference in New Issue
Block a user