Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 5, 2024
1 parent 1faa56c commit 7a6b64c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/tao/pq/internal/resize_uninitialized.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ namespace tao::pq::internal
{
friend void resize_uninitialized_proxy( T& v, const std::size_t n ) noexcept
{
v.*M = v.data() + n; // v.__end_ = v.data() + n;
// v.__end_ = v.data() + n;
v.*M = v.data() + n;

#ifndef _LIBCPP_HAS_NO_ASAN
__sanitizer_annotate_contiguous_container( v.data(),
Expand All @@ -113,8 +114,8 @@ namespace tao::pq::internal
{
friend void resize_uninitialized_proxy( T& v, const std::size_t n ) noexcept
{
// v._Mypair._Myval2._Mylast += ( n - v.size() );
v.*Mypair.*Myval2.*Mylast += ( n - v.size() );
// v._Mypair._Myval2._Mylast = v.data() + n;
v.*Mypair.*Myval2.*Mylast = v.data() + n;
}
};

Expand Down

0 comments on commit 7a6b64c

Please sign in to comment.