aboutsummaryrefslogtreecommitdiff
path: root/build/path-io
blob: a9deea9a1f52edba25cfe4db5cc355e05019e59a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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