use s.empty() rather than s == "" to test for empty string; see
<http://mail.gnu.org/archive/html/bison-patches/2003-07/msg00003.html>
(trivial change)
inline std::ostream&
operator<< (std::ostream& ostr, const Position& pos)
{
inline std::ostream&
operator<< (std::ostream& ostr, const Position& pos)
{
- if (pos.filename != "")
+ if (!pos.filename.empty ())
ostr << pos.filename << ':';
return ostr << pos.line << '.' << pos.column;
}
ostr << pos.filename << ':';
return ostr << pos.line << '.' << pos.column;
}