forked from boostorg/beast
Use a struct instead of pair in flat_stream
No need to instantiate a pair and a custom struct has better member names. Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
committed by
Vinnie Falco
parent
35e4f321bc
commit
776462a8a4
@@ -40,8 +40,8 @@ public:
|
||||
v.emplace_back("", n);
|
||||
auto const result =
|
||||
boost::beast::detail::flat_stream_base::coalesce(v, limit);
|
||||
BEAST_EXPECT(result.first == count);
|
||||
BEAST_EXPECT(result.second == copy);
|
||||
BEAST_EXPECT(result.size == count);
|
||||
BEAST_EXPECT(result.needs_coalescing == copy);
|
||||
return result;
|
||||
};
|
||||
check({}, 1, 0, false);
|
||||
|
||||
Reference in New Issue
Block a user