Tidy up read_size_helper and dynamic buffers

fix #376
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:17 -07:00
1 parent 3543b4b913
commit 929174d4d8
15 files changed
+105 -46

No files matched your search

+7 -7
View File
@@ -285,13 +285,6 @@ public:
void
consume(size_type n);
// Helper for boost::asio::read_until
template<class OtherAllocator>
friend
std::size_t
read_size_helper(basic_multi_buffer<
OtherAllocator> const& multi_buffer, std::size_t max_size);
private:
void
clear();
@@ -315,6 +308,13 @@ private:
debug_check() const;
};
/// Helper for boost::asio::read_until
template<class Allocator>
std::size_t
read_size_helper(
basic_multi_buffer<Allocator> const& buffer,
std::size_t max_size);
/// A typical multi buffer
using multi_buffer = basic_multi_buffer<std::allocator<char>>;