mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
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:
parent
d2245390e0
commit
ddbfee788c
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user