diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-26 16:51:21 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-26 16:51:21 +0300 |
commit | 6d72539a2276e1f0325f77b769142ace384e6fcb (patch) | |
tree | 283662a62ff4bdd29551439b187453fd3d1f085a /moses/FactorCollection.h | |
parent | 75c052dc66b770192fcda4539422461127747370 (diff) |
FactorCollection is a friend of moses2 System
Diffstat (limited to 'moses/FactorCollection.h')
-rw-r--r-- | moses/FactorCollection.h | 3 |
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 { |