forked from boostorg/beast
Fix decorator for certain sizes
This commit is contained in:
1 parent
1e5b4f531d
commit
4eb137f8ea
3 files changed
+19
-1
No files matched your search
@@ -86,6 +86,14 @@ public:
|
||||
char buf[2048];
|
||||
};
|
||||
|
||||
struct goldi // just right
|
||||
{
|
||||
std::array<char, 48> a;
|
||||
void operator()(request_type &) const
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
void
|
||||
dec_req(request_type&)
|
||||
{
|
||||
@@ -121,6 +129,10 @@ public:
|
||||
decorator d3;
|
||||
d3 = std::move(d2);
|
||||
}
|
||||
|
||||
{
|
||||
decorator d{goldi{}};
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in new issue
Block a user