Skip to content

Commit e9693fd

Browse files
committed
bugfix: delete proper ctor in gil.h
1 parent 3efe9d4 commit e9693fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/gil.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ class gil_scoped_release {
152152
}
153153
}
154154

155-
gil_scoped_release(const gil_scoped_acquire &) = delete;
156-
gil_scoped_release &operator=(const gil_scoped_acquire &) = delete;
155+
gil_scoped_release(const gil_scoped_release &) = delete;
156+
gil_scoped_release &operator=(const gil_scoped_release &) = delete;
157157

158158
/// This method will disable the PyThreadState_DeleteCurrent call and the
159159
/// GIL won't be acquired. This method should be used if the interpreter

0 commit comments

Comments
 (0)