mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
committed by
Mohammad Nejati
parent
25105e476a
commit
e0a9da265f
@ -44,6 +44,7 @@ public:
|
||||
net::const_buffer>::type;
|
||||
|
||||
struct iterator;
|
||||
using const_iterator = iterator;
|
||||
|
||||
// construct from two iterators plus optionally subrange definition
|
||||
subrange(
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include <boost/beast/core/read_size.hpp>
|
||||
#include <boost/beast/_experimental/unit_test/suite.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/asio/buffers_iterator.hpp>
|
||||
#include <boost/asio/streambuf.hpp>
|
||||
#include <iterator>
|
||||
|
||||
@ -114,6 +115,15 @@ public:
|
||||
read_size(ba, 1024);
|
||||
}
|
||||
|
||||
void
|
||||
testIssue2459()
|
||||
{
|
||||
char s[13];
|
||||
buffers_triple tb(s, sizeof(s));
|
||||
buffers_adaptor<buffers_triple> b(tb);
|
||||
ignore_unused(net::buffers_begin(b.data()));
|
||||
}
|
||||
|
||||
template<bool isMutable>
|
||||
void
|
||||
testSubrange()
|
||||
@ -165,6 +175,7 @@ public:
|
||||
testDynamicBuffer();
|
||||
testSpecial();
|
||||
testIssue386();
|
||||
testIssue2459();
|
||||
testSubrange<true>();
|
||||
testSubrange<false>();
|
||||
}
|
||||
|
Reference in New Issue
Block a user