// file : butl/path-io -*- C++ -*- // copyright : Copyright (c) 2014-2015 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #ifndef BUTL_PATH_IO #define BUTL_PATH_IO #include #include namespace butl { // This is the default path IO implementation. The reason it is // separate is because one often wants a custom implementation. // For example, we may want to print paths as relative to the // working directory. Or we may want to print '~' for the home // directory prefix. Or we may want to print dir_path with a // trailing '/'. // template inline std::basic_ostream& operator<< (std::basic_ostream& os, basic_path const& p) { return os << p.string (); } } #endif // BUTL_PATH_IO