Skip to content

bugfix: delete proper ctors in gil.h - #4490

Merged
Skylion007 merged 1 commit into
pybind:masterfrom
Skylion007:skylion007/fix-gil-deleted-ctor-bug
Feb 4, 2023
Merged

bugfix: delete proper ctors in gil.h#4490
Skylion007 merged 1 commit into
pybind:masterfrom
Skylion007:skylion007/fix-gil-deleted-ctor-bug

Conversation

@Skylion007

Copy link
Copy Markdown
Collaborator

Description

Fix#4484 . A copy paste bug resulted in a non-existent ctor being deleted.

Suggested changelog entry:

* bugfix: ensure gil_scoped_release RAII is non-copyable.

@Skylion007
Skylion007force-pushed the skylion007/fix-gil-deleted-ctor-bug branch from e9693fd to a24fea0CompareFebruary 4, 2023 15:43
rwgk
rwgk approved these changes Feb 4, 2023

@rwgkrwgk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Oh, wow, how did you notice?

(I would have guessed the current code doesn't even compile TBH; or at least clang-tidy will get upset. I'll look more carefully in the future.)

@Skylion007Skylion007 changed the title bugfix: delete proper ctor in gil.hbugfix: delete proper ctors in gil.hFeb 4, 2023
@Skylion007
Skylion007 merged commit 08a89fa into pybind:masterFeb 4, 2023
@Skylion007
Skylion007 deleted the skylion007/fix-gil-deleted-ctor-bug branch February 4, 2023 18:40
@github-actionsgithub-actionsBot added the needs changelog Possibly needs a changelog entry label Feb 4, 2023
@Skylion007

Skylion007 commented Feb 4, 2023

Copy link
Copy Markdown
CollaboratorAuthor

@rwgk I didn't. The author of #4484 noticed.

@rwgkrwgk mentioned this pull request Feb 11, 2023
henryiii pushed a commit that referenced this pull request Feb 24, 2023
@henryiiihenryiii removed the needs changelog Possibly needs a changelog entry label Mar 16, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Wrong argument for gil_scoped_release deleted copy constructor

3 participants

@Skylion007@rwgk@henryiii