serializing file_body is not const

This commit is contained in:
Vinnie Falco
2017-07-20 08:15:30 -07:00
parent e06a055503
commit cc198db10e
7 changed files with 45 additions and 13 deletions
+3 -3
View File
@@ -75,7 +75,7 @@ public:
/// Returns the native handle associated with the file.
native_handle_type
native_handle() const
native_handle()
{
return h_;
}
@@ -130,7 +130,7 @@ public:
@return The offset in bytes from the beginning of the file
*/
std::uint64_t
pos(error_code& ec) const;
pos(error_code& ec);
/** Adjust the current position in the open file
@@ -150,7 +150,7 @@ public:
@param ec Set to the error, if any occurred
*/
std::size_t
read(void* buffer, std::size_t n, error_code& ec) const;
read(void* buffer, std::size_t n, error_code& ec);
/** Write to the open file
+2 -2
View File
@@ -226,7 +226,7 @@ size(error_code& ec) const
inline
std::uint64_t
file_win32::
pos(error_code& ec) const
pos(error_code& ec)
{
if(h_ == boost::detail::winapi::INVALID_HANDLE_VALUE_)
{
@@ -272,7 +272,7 @@ seek(std::uint64_t offset, error_code& ec)
inline
std::size_t
file_win32::
read(void* buffer, std::size_t n, error_code& ec) const
read(void* buffer, std::size_t n, error_code& ec)
{
if(h_ == boost::detail::winapi::INVALID_HANDLE_VALUE_)
{