mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 20:46:59 +03:00
inline fn. COmpile error on gcc
This commit is contained in:
parent
a6634789fd
commit
7d780593bb
@ -33,7 +33,7 @@ protected:
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
std::ostream& operator<<(std::ostream &out, const SubPhrase<Moses2::Word> &obj)
|
||||
inline std::ostream& operator<<(std::ostream &out, const SubPhrase<Moses2::Word> &obj)
|
||||
{
|
||||
if (obj.GetSize()) {
|
||||
out << obj[0];
|
||||
|
@ -53,12 +53,19 @@ protected:
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
inline std::ostream& operator<<(std::ostream &out, const TargetPhrase<Moses2::Word> &obj)
|
||||
{
|
||||
out << (const Phrase<Moses2::Word> &) obj << " SCORES:" << obj.GetScores();
|
||||
return out;
|
||||
}
|
||||
/*
|
||||
template<typename WORD>
|
||||
inline std::ostream& operator<<(std::ostream &out, const TargetPhrase<WORD> &obj)
|
||||
std::ostream& operator<<(std::ostream &out, const TargetPhrase<WORD> &obj)
|
||||
{
|
||||
out << (const Phrase<WORD> &) obj << " SCORES:" << obj.GetScores();
|
||||
return out;
|
||||
}
|
||||
*/
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
template<typename WORD>
|
||||
|
Loading…
Reference in New Issue
Block a user