diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-13 10:29:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-13 10:29:25 +0200 |
commit | 534f9d8db025d58c9ce23f3b81a37e8c34386a27 (patch) | |
tree | e7d0c7871a7caf3b3e41c8d00548212f1ca7aa83 /build/path-io | |
parent | b4ceb7b6aecb7492b28d7a0f6c53fa657a2cd2e5 (diff) |
Add initial import support
Diffstat (limited to 'build/path-io')
-rw-r--r-- | build/path-io | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/build/path-io b/build/path-io new file mode 100644 index 0000000..a9deea9 --- /dev/null +++ b/build/path-io @@ -0,0 +1,22 @@ +// file : build/path-io -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD_PATH_IO +#define BUILD_PATH_IO + +#include <ostream> + +#include <build/path> +#include <build/diagnostics> + +namespace build +{ + inline std::ostream& + operator<< (std::ostream& os, const path& p) + { + return os << (&os == diag_stream ? diag_relative (p) : p.string ()); + } +} + +#endif // BUILD_PATH_IO |