mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 06:24:26 +02:00
Fixes Trac #12177 ("vector::priv_merge uses unqualified uintptr_t")
This commit is contained in:
@@ -1217,6 +1217,7 @@ use [*Boost.Container]? There are several reasons for that:
|
|||||||
|
|
||||||
* Fixed bugs:
|
* Fixed bugs:
|
||||||
* [@https://svn.boost.org/trac/boost/ticket/11170 Trac #11170: ['"Doc slip for index_of"]].
|
* [@https://svn.boost.org/trac/boost/ticket/11170 Trac #11170: ['"Doc slip for index_of"]].
|
||||||
|
* [@https://svn.boost.org/trac/boost/ticket/12177 Trac #12177: ['"vector::priv_merge uses unqualified uintptr_t"]].
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
@@ -2246,7 +2246,7 @@ class vector
|
|||||||
size_type *indexes = 0;
|
size_type *indexes = 0;
|
||||||
while(remaining){
|
while(remaining){
|
||||||
//Query for room to store indexes in the remaining buffer
|
//Query for room to store indexes in the remaining buffer
|
||||||
uintptr_t const szt_align_mask = container_detail::alignment_of<size_type>::value - 1;
|
boost::uintptr_t const szt_align_mask = container_detail::alignment_of<size_type>::value - 1;
|
||||||
boost::uintptr_t const addr = boost::uintptr_t(this->priv_raw_begin() + s + n);
|
boost::uintptr_t const addr = boost::uintptr_t(this->priv_raw_begin() + s + n);
|
||||||
boost::uintptr_t const capaddr = boost::uintptr_t(this->priv_raw_begin() + c);
|
boost::uintptr_t const capaddr = boost::uintptr_t(this->priv_raw_begin() + c);
|
||||||
boost::uintptr_t const aligned_addr = (addr + szt_align_mask) & ~szt_align_mask;
|
boost::uintptr_t const aligned_addr = (addr + szt_align_mask) & ~szt_align_mask;
|
||||||
|
Reference in New Issue
Block a user