From 84c8a9c5923403564eb2f9ca78e1e343112b4a87 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 8 Apr 2007 20:05:10 +0000 Subject: [PATCH] Implement the output inserter for PathWithStatus git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35770 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/System/Path.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; +} } -- 2.34.1