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 <hieuhoang@gmail.com>2015-10-26 16:51:21 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-26 16:51:21 +0300
commit6d72539a2276e1f0325f77b769142ace384e6fcb (patch)
tree283662a62ff4bdd29551439b187453fd3d1f085a /moses/FactorCollection.h
parent75c052dc66b770192fcda4539422461127747370 (diff)
FactorCollection is a friend of moses2 System
Diffstat (limited to 'moses/FactorCollection.h')
-rw-r--r--moses/FactorCollection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/FactorCollection.h b/moses/FactorCollection.h
index 5d94e1197..c2e3362aa 100644
--- a/moses/FactorCollection.h
+++ b/moses/FactorCollection.h
@@ -41,6 +41,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "util/pool.hh"
#include "Factor.h"
+class System;
+
namespace Moses
{
@@ -66,6 +68,7 @@ struct FactorFriend {
class FactorCollection
{
friend std::ostream& operator<<(std::ostream&, const FactorCollection&);
+ friend class ::System;
struct HashFactor : public std::unary_function<const FactorFriend &, std::size_t> {
std::size_t operator()(const FactorFriend &factor) const {