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
2018-12-06 15:53:13 -08:00
committed by Vinnie Falco
parent 35e4f321bc
commit 776462a8a4
4 changed files with 29 additions and 23 deletions
+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);