aboutsummaryrefslogtreecommitdiff
path: root/build/path-io
diff options
context:
space:
mode:
Diffstat (limited to 'build/path-io')
-rw-r--r--build/path-io23
1 files changed, 5 insertions, 18 deletions
diff --git a/build/path-io b/build/path-io
index accdb94..f5f2d4f 100644
--- a/build/path-io
+++ b/build/path-io
@@ -5,30 +5,17 @@
#ifndef BUILD_PATH_IO
#define BUILD_PATH_IO
-#include <ostream>
+#include <iosfwd>
#include <build/path>
namespace build
{
- inline std::ostream&
- operator<< (std::ostream& os, const path& p)
- {
- return os << p.string ();
- }
+ std::ostream&
+ operator<< (std::ostream&, const path&);
- inline std::ostream&
- operator<< (std::ostream& os, const dir_path& d)
- {
- const std::string& s (d.string ());
-
- // Print the directory with trailing '/'.
- //
- if (!s.empty ())
- os << s << (dir_path::traits::is_separator (s.back ()) ? "" : "/");
-
- return os;
- }
+ std::ostream&
+ operator<< (std::ostream&, const dir_path&);
}
#endif // BUILD_PATH_IO