mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 12:57:31 +02:00
Document type-pun in buffer_cat
This commit is contained in:
@ -1,13 +1,17 @@
|
|||||||
1.0.0-b29
|
1.0.0-b29
|
||||||
|
|
||||||
* Fix race in writes during WebSocket reads
|
|
||||||
* Fix compilation error in non-template class
|
* Fix compilation error in non-template class
|
||||||
|
* Document type-pun in buffer_cat
|
||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
|
|
||||||
* Fix Body requirements doc
|
* Fix Body requirements doc
|
||||||
* Fix illegal HTTP characters accepted as hex zero
|
* Fix illegal HTTP characters accepted as hex zero
|
||||||
|
|
||||||
|
WebSocket
|
||||||
|
|
||||||
|
* Fix race in writes during reads
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
1.0.0-b28
|
1.0.0-b28
|
||||||
|
@ -82,6 +82,7 @@ class buffer_cat_helper<Bn...>::const_iterator
|
|||||||
iter_t<I>&
|
iter_t<I>&
|
||||||
iter()
|
iter()
|
||||||
{
|
{
|
||||||
|
// type-pun
|
||||||
return *reinterpret_cast<
|
return *reinterpret_cast<
|
||||||
iter_t<I>*>(static_cast<void*>(
|
iter_t<I>*>(static_cast<void*>(
|
||||||
buf_.data()));
|
buf_.data()));
|
||||||
@ -91,6 +92,7 @@ class buffer_cat_helper<Bn...>::const_iterator
|
|||||||
iter_t<I> const&
|
iter_t<I> const&
|
||||||
iter() const
|
iter() const
|
||||||
{
|
{
|
||||||
|
// type-pun
|
||||||
return *reinterpret_cast<
|
return *reinterpret_cast<
|
||||||
iter_t<I> const*>(static_cast<
|
iter_t<I> const*>(static_cast<
|
||||||
void const*>(buf_.data()));
|
void const*>(buf_.data()));
|
||||||
|
Reference in New Issue
Block a user