Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: owent <admin@owent.net>
  • Loading branch information
owent committed Nov 28, 2022
1 parent fab0228 commit 38428e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/include/opentelemetry/nostd/shared_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ class shared_ptr
void MoveTo(typename shared_ptr<U>::PlacementBuffer &buffer) noexcept
{
using other_shared_ptr_wrapper = typename shared_ptr<U>::shared_ptr_wrapper;
new (buffer.data)
other_shared_ptr_wrapper{std::move(std::static_pointer_cast<U>(this->ptr_))};
new (buffer.data) other_shared_ptr_wrapper{std::move(this->ptr_)};
}

virtual pointer Get() const noexcept { return ptr_.get(); }
Expand Down

0 comments on commit 38428e5

Please sign in to comment.