Skip to content

Commit d40299a

Browse files
authored
Update include/pybind11/pybind11.h
1 parent c61f197 commit d40299a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/pybind11.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ PYBIND11_NAMESPACE_END(detail)
12091209
// Use to activate Py_MOD_GIL_NOT_USED.
12101210
class mod_gil_not_used {
12111211
public:
1212-
mod_gil_not_used(bool flag = true) : flag_(flag) {}
1212+
explicit mod_gil_not_used(bool flag = true) : flag_(flag) {}
12131213
bool flag() const { return flag_; }
12141214

12151215
private:

0 commit comments

Comments
 (0)