Namespace ostream and endl into std::
Use <iostream> without the .h
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user