mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
warnings
This commit is contained in:
parent
6435f15a14
commit
7d1aeaa601
@ -79,7 +79,6 @@ class MemPool {
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class ObjectPoolContiguous {
|
class ObjectPoolContiguous {
|
||||||
friend std::ostream& operator<<(std::ostream &, const ObjectPoolContiguous &);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ObjectPoolContiguous(std::size_t initSize = 100000)
|
ObjectPoolContiguous(std::size_t initSize = 100000)
|
||||||
@ -152,16 +151,6 @@ class ObjectPoolContiguous {
|
|||||||
ObjectPoolContiguous &operator=(const 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>
|
template <typename T>
|
||||||
class MemPoolAllocator
|
class MemPoolAllocator
|
||||||
|
Loading…
Reference in New Issue
Block a user