diff --git a/contrib/other-builds/moses2/Jamfile b/contrib/other-builds/moses2/Jamfile index a3c8b7f36..475cc536c 100644 --- a/contrib/other-builds/moses2/Jamfile +++ b/contrib/other-builds/moses2/Jamfile @@ -63,5 +63,5 @@ import path ; ../../../moses//moses ../../../OnDiskPt//OnDiskPt ../../..//boost_filesystem - : $(xmlrpc-linkflags) $(xmlrpc-cxxflags) ; + : $(xmlrpc-linkflags) $(xmlrpc-cxxflags) -std=c++11 ; diff --git a/contrib/other-builds/moses2/MemPool.h b/contrib/other-builds/moses2/MemPool.h index 219fe9bab..2a421d414 100644 --- a/contrib/other-builds/moses2/MemPool.h +++ b/contrib/other-builds/moses2/MemPool.h @@ -10,6 +10,7 @@ #include #include +#include class MemPool { struct Page { @@ -78,6 +79,10 @@ class MemPoolAllocator public: typedef T value_type; typedef T* pointer; + typedef const T* const_pointer; + typedef T& reference; + typedef const T& const_reference; + typedef std::size_t size_type; size_type max_size() const @@ -95,10 +100,8 @@ public: return ret; } - /* template< class U > struct rebind { typedef MemPoolAllocator other; }; - */ protected: MemPool m_pool; diff --git a/contrib/other-builds/moses2/Search/Stack.h b/contrib/other-builds/moses2/Search/Stack.h index 7ab79e8a8..6f2e5929e 100644 --- a/contrib/other-builds/moses2/Search/Stack.h +++ b/contrib/other-builds/moses2/Search/Stack.h @@ -29,7 +29,7 @@ public: class Stack { protected: - typedef std::unordered_set, UnorderedComparer, MemPoolAllocator > _HCType; + typedef std::unordered_set, UnorderedComparer > _HCType; _HCType m_hypos; public: typedef _HCType::iterator iterator;