Sorry about the compiler error.

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4251 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
heafield 2011-09-22 08:55:54 +00:00
parent d2245390e0
commit ddbfee788c
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ const Factor *FactorCollection::AddFactor(FactorDirection direction
#else // BOOST_VERSION
Set::const_iterator i = m_set.find(to_ins);
#endif // BOOST_VERSION
if (i != m_set.end()) return &*i;
if (i != m_set.end()) return &i->in;
}
boost::unique_lock<boost::shared_mutex> lock(m_accessLock);
#if BOOST_VERSION >= 102400

View File

@ -75,8 +75,8 @@ class FactorCollection
return (*this)(factor.in.GetString());
}
};
struct EqualsFactor : public std::binary_function<const FactorFriend &, const Factor &, bool> {
bool operator()(const Factor &left, const FactorFriend &right) const {
struct EqualsFactor : public std::binary_function<const FactorFriend &, const FactorFriend &, bool> {
bool operator()(const FactorFriend &left, const FactorFriend &right) const {
return left.in.GetString() == right.in.GetString();
}
bool operator()(const FactorFriend &left, const std::string &right) const {