io_posix: style

improve the code style for 80 column limitations
This commit is contained in:
Danny Robson 2017-07-19 17:20:51 +10:00
parent db5795c25a
commit fcc78eb103
2 changed files with 8 additions and 3 deletions

View File

@ -27,7 +27,9 @@ using util::detail::posix::mapped_file;
//////////////////////////////////////////////////////////////////////////////
mapped_file::mapped_file (const std::experimental::filesystem::path &path, int fflags, int mflags):
mapped_file::mapped_file (const std::experimental::filesystem::path &path,
int fflags,
int mflags):
mapped_file (util::posix::fd (path, fflags), mflags)
{ ; }

View File

@ -31,8 +31,11 @@ namespace util {
namespace detail::posix {
class mapped_file {
public:
mapped_file (const std::experimental::filesystem::path&, int fflags = O_RDONLY | O_BINARY, int mflags = PROT_READ);
mapped_file (const util::posix::fd&, int mflags = PROT_READ);
mapped_file (const std::experimental::filesystem::path&,
int fflags = O_RDONLY | O_BINARY,
int mflags = PROT_READ);
mapped_file (const util::posix::fd&,
int mflags = PROT_READ);
mapped_file (const mapped_file&) = delete;
mapped_file& operator= (const mapped_file&) = delete;