Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <s0565741@odin.inf.ed.ac.uk>2016-10-05 18:53:16 +0300
committerHieu Hoang <s0565741@odin.inf.ed.ac.uk>2016-10-05 18:53:16 +0300
commit43ece9b1fff4ef94117e946f24269d2dbf17b20e (patch)
tree194e891e48b06cdd8933c5e7635b73b98aede790
parent7d7ae1b72ca6487cd50dba6d20d0ba4a4b08b782 (diff)
compile error with gcc 4.6.3
-rw-r--r--contrib/moses2/MemPool.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/moses2/MemPool.h b/contrib/moses2/MemPool.h
index 5820ce2be..8160aa5a3 100644
--- a/contrib/moses2/MemPool.h
+++ b/contrib/moses2/MemPool.h
@@ -230,6 +230,14 @@ public:
//std::cerr << "destroy " << p << " " << n << std::endl;
}
+ // return address of values
+ pointer address (reference value) const {
+ return &value;
+ }
+ const_pointer address (const_reference value) const {
+ return &value;
+ }
+
MemPool &m_pool;
protected:
};