Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Test failure path for allocated objects #127

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Twon
Copy link
Collaborator

@Twon Twon commented Oct 12, 2022

No description provided.

@Twon Twon requested a review from jbcoe October 12, 2022 10:44
@@ -52,9 +52,10 @@ struct copier_traits_deleter_base<U* (*)(V)> {
class control_block_deleter {
public:
template <class T>
void operator()(T* t) const noexcept {
void operator()(T*& t) const noexcept {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this change needed?

if (t != nullptr) {
t->destroy();
t = nullptr;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants