Bug fix: endl => std::endl.

This commit is contained in:
Ulrich Germann 2015-08-08 12:57:05 +01:00
parent 21aa5af640
commit ac862945bb
3 changed files with 7 additions and 7 deletions

View File

@ -81,7 +81,7 @@ ProcessOneStack(HypothesisStack* hstack)
*/
void SearchNormal::Decode()
{
SentenceStats &stats = m_manager.GetSentenceStats();
// SentenceStats &stats = m_manager.GetSentenceStats();
// initial seed hypothesis: nothing translated, no words produced
Hypothesis *hypo = Hypothesis::Create(m_manager, m_source, m_initialTransOpt);

View File

@ -82,14 +82,14 @@ TargetPhrase::TargetPhrase(ttasksptr& ttask, std::string out_string, const Phras
TargetPhrase::TargetPhrase(ttasksptr& ttask, const PhraseDictionary *pt)
:Phrase()
, m_ttask(ttask)
, m_ttask_flag(true)
, m_fullScore(0.0)
, m_futureScore(0.0)
, m_alignTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
, m_lhsTarget(NULL)
, m_ruleSource(NULL)
, m_ttask(ttask)
, m_ttask_flag(true)
, m_container(pt)
{
}

View File

@ -30,11 +30,11 @@ namespace MosesServer
.allowOrigin("*")
.maxConn(m_server_options.num_threads));
XVERBOSE(1,"Listening on port " << m_server_options.port << endl);
XVERBOSE(1,"Listening on port " << m_server_options.port << std::endl);
if (m_server_options.is_serial)
{
VERBOSE(1,"Running server in serial mode." << endl);
while(true) myAbyssServer.runOnce();
VERBOSE(1,"Running server in serial mode." << std::endl);
while(true) myAbyssServer.runOnce();
}
else myAbyssServer.run();
@ -42,7 +42,7 @@ namespace MosesServer
// #pragma message("BUILDING MOSES WITH SERVER SUPPORT")
#else
// #pragma message("BUILDING MOSES WITHOUT SERVER SUPPORT")
std::cerr << "Moses was compiled without server support." << endl;
std::cerr << "Moses was compiled without server support." << std::endl;
#endif
return 1;
}