mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 21:34:46 +02:00
Fix decorator for certain sizes
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
Version 227:
|
||||
|
||||
* Fix decorator for certain sizes
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Version 226:
|
||||
|
||||
* Support -fno-exceptions
|
||||
|
@@ -223,7 +223,7 @@ public:
|
||||
decorator(F&& f)
|
||||
: base_(construct(std::forward<F>(f),
|
||||
std::integral_constant<bool,
|
||||
sizeof(F) <= sizeof(buf_)>{}))
|
||||
sizeof(F) <= Bytes>{}))
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -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