Namespace ostream and endl into std::

Use <iostream> without the .h
This commit is contained in:
Peter Howkins
2012-03-13 17:54:48 +00:00
parent 167fd854e1
commit 7294970c18
4 changed files with 54 additions and 0 deletions

View File

@@ -118,13 +118,25 @@ void ManSearchPath::Print()
}
}
#if defined(linux)
std::ostream & operator<<
(
std::ostream & os,
const ManSearchPath & sp
)
#else
ostream & operator<<
(
ostream & os,
const ManSearchPath & sp
)
#endif
{
#if defined(linux)
os << sp.GetEnvVar() << std::endl;
#else
os << sp.GetEnvVar() << endl;
#endif
sp.PrettyPrint(os);
return os;
}