buffers_suffix replaces consuming_buffers (API Change):

fix #770

* consuming_buffers is renamed to buffers_suffix

Actions Required:

* Use buffers_suffix instead of consuming_buffers
This commit is contained in:
Vinnie Falco committed 2017-09-15 12:52:45 -07:00
1 parent dca65932a8
commit 795da80859
26 files changed
+115 -103

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@
// Test that header file is self-contained.
#include <boost/beast/core/buffer_prefix.hpp>
#include <boost/beast/core/consuming_buffers.hpp>
#include <boost/beast/core/buffers_suffix.hpp>
#include <boost/beast/core/type_traits.hpp>
#include <boost/beast/unit_test/suite.hpp>
#include <boost/asio/buffer.hpp>
@@ -149,7 +149,7 @@ public:
BEAST_EXPECT(buffer_copy(pb0, pb1) == 0);
using pb_type = decltype(pb0);
consuming_buffers<pb_type> cb(pb0);
buffers_suffix<pb_type> cb(pb0);
BEAST_EXPECT(buffer_size(cb) == 0);
BEAST_EXPECT(buffer_copy(cb, pb1) == 0);
cb.consume(1);