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

@@ -50,9 +50,16 @@ class SearchPath {
virtual void ExportPath();
virtual void Print();
virtual void AddPredefinedPath();
#if defined(linux)
virtual void PrettyPrint (std::ostream &) const;
friend std::ostream & operator<< (std::ostream &, const SearchPath &);
#else
virtual void PrettyPrint (ostream &) const;
friend ostream & operator<< (ostream &, const SearchPath &);
#endif
const char * GetEnvVar() const { return environment_var; }
CString GetSearchPath() const { return final_search_path; }
@@ -178,7 +185,11 @@ class ManSearchPath : public SearchPath {
virtual void ExportPath ();
virtual void Print();
#if defined(linux)
friend std::ostream & operator<< (std::ostream &, const ManSearchPath &);
#else
friend ostream & operator<< (ostream &, const ManSearchPath &);
#endif
protected:
virtual void MakePath (const CString &);