From 1717458c7a4ff8303eed40d38fb9d02613654a2a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 28 Jun 2016 12:21:30 +1000 Subject: [PATCH] io_posix: public/private order style --- io_posix.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/io_posix.hpp b/io_posix.hpp index ada37b25..150ec6cf 100644 --- a/io_posix.hpp +++ b/io_posix.hpp @@ -25,13 +25,6 @@ namespace util { namespace detail { namespace posix { class mapped_file { - private: - fd m_fd; - uint8_t *m_data; - size_t m_size; - - void load_fd (int mflags); - public: mapped_file (const char *path, int fflags = O_RDONLY | O_BINARY, int mflags = PROT_READ); @@ -51,6 +44,13 @@ namespace util { const uint8_t* cbegin (void) const; const uint8_t* cend (void) const; + + private: + fd m_fd; + uint8_t *m_data; + size_t m_size; + + void load_fd (int mflags); }; } }