diff --git a/contrib/other-builds/moses2/ReorderingConstraint.h b/contrib/other-builds/moses2/ReorderingConstraint.h index 9fdf3c524..a7c757ec8 100644 --- a/contrib/other-builds/moses2/ReorderingConstraint.h +++ b/contrib/other-builds/moses2/ReorderingConstraint.h @@ -1,6 +1,7 @@ #pragma once #include #include +#include "Vector.h" namespace Moses2 { @@ -18,7 +19,7 @@ protected: size_t m_size; /**< number of words in sentence */ bool *m_wall; /**< flag for each word if it is a wall */ size_t *m_localWall; /**< flag for each word if it is a local wall */ - std::vector< std::pair > m_zone; /** zones that limit reordering */ + Vector< std::pair > m_zone; /** zones that limit reordering */ bool m_active; /**< flag indicating, if there are any active constraints */ int m_max_distortion; MemPool &m_pool; @@ -33,6 +34,7 @@ public: , m_localWall(NULL) , m_active(false) , m_pool(pool) + , m_zone(pool) {} //! destructer @@ -61,7 +63,7 @@ public: void SetZone( size_t startPos, size_t endPos ); //! returns the vector of zones - std::vector< std::pair< size_t,size_t> > & GetZones() { + Vector< std::pair< size_t,size_t> > & GetZones() { return m_zone; }