From: Reid Spencer Date: Sun, 8 Apr 2007 20:05:10 +0000 (+0000) Subject: Implement the output inserter for PathWithStatus X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=84c8a9c5923403564eb2f9ca78e1e343112b4a87;p=oota-llvm.git Implement the output inserter for PathWithStatus git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35770 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 69c1b483070..6c9ab94579c 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -617,9 +617,12 @@ namespace sys { bool CopyFile(const Path& Dest, const Path& Src, std::string* ErrMsg); } - std::ostream& operator<<(std::ostream& strm, const sys::Path& aPath); -std::ostream& operator<<(std::ostream& strm, const sys::PathWithStatus& aPath); +inline std::ostream& operator<<(std::ostream& strm, + const sys::PathWithStatus& aPath) { + strm << static_cast(aPath); + return strm; +} }