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:
Damian Jarek authored and Vinnie Falco committed 2018-12-06 15:53:13 -08:00
1 parent 35e4f321bc
commit 776462a8a4
4 files changed
+29 -23

No files matched your search

+2 -2
View File
@@ -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);