summaryrefslogtreecommitdiff
path: root/boost/beast/core/detail/buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/beast/core/detail/buffer.hpp')
-rw-r--r--boost/beast/core/detail/buffer.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/beast/core/detail/buffer.hpp b/boost/beast/core/detail/buffer.hpp
index d359d10059..c898d95c61 100644
--- a/boost/beast/core/detail/buffer.hpp
+++ b/boost/beast/core/detail/buffer.hpp
@@ -1,5 +1,5 @@
//
-// Copyright (c) 2018 Vinnie Falco (vinnie dot falco at gmail dot com)
+// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -39,7 +39,7 @@ dynamic_buffer_prepare_noexcept(
boost::optional<typename
DynamicBuffer::mutable_buffers_type> result;
result.emplace(buffer.prepare(size));
- ec.assign(0, ec.category());
+ ec = {};
return result;
}
@@ -61,7 +61,7 @@ dynamic_buffer_prepare(
boost::optional<typename
DynamicBuffer::mutable_buffers_type> result;
result.emplace(buffer.prepare(size));
- ec.assign(0, ec.category());
+ ec = {};
return result;
}
catch(std::length_error const&)