forked from boostorg/beast
Document type-pun in buffer_cat
This commit is contained in:
1 parent
e224d64949
commit
8fe07212f1
2 files changed
+7
-1
No files matched your search
@@ -82,6 +82,7 @@ class buffer_cat_helper<Bn...>::const_iterator
|
||||
iter_t<I>&
|
||||
iter()
|
||||
{
|
||||
// type-pun
|
||||
return *reinterpret_cast<
|
||||
iter_t<I>*>(static_cast<void*>(
|
||||
buf_.data()));
|
||||
@@ -91,6 +92,7 @@ class buffer_cat_helper<Bn...>::const_iterator
|
||||
iter_t<I> const&
|
||||
iter() const
|
||||
{
|
||||
// type-pun
|
||||
return *reinterpret_cast<
|
||||
iter_t<I> const*>(static_cast<
|
||||
void const*>(buf_.data()));
|
||||
|
||||
Reference in new issue
Block a user