Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11312: smart_ptr::detail::as_allocator::allocate() adds alignment padding when it's not needed
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-05-17 10:20:00
#11312: smart_ptr::detail::as_allocator::allocate() adds alignment padding when
it's not needed
----------------------------------+-----------------------
Reporter: David Aue <david@â¦> | Owner: glenfe
Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-----------------------
Comment (by pdimov):
`CA` is `allocator<char>` and there is no guarantee for `p1` to be aligned
at anything, regardless of what the alignment of `value_type` is.
Although I suppose that the code already assumes that `p1` is aligned at
`alignof(value_type)` anyway. But this assumption doesn't seem quite
correct.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11312#comment:7> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC