We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6871c1 commit 296657eCopy full SHA for 296657e
include/pybind11/pybind11.h
@@ -858,7 +858,7 @@ class module_ : public object {
858
859
/// Create a new top-level Python module with the given name and docstring
860
#if PY_MAJOR_VERSION >= 3
861
- explicit module(const char *name, const char *doc = nullptr, PyModuleDef *def = nullptr) {
+ explicit module_(const char *name, const char *doc = nullptr, PyModuleDef *def = nullptr) {
862
if (!def) def = new PyModuleDef();
863
def = new (def) PyModuleDef { // Placement new (not an allocation).
864
/* m_base */ PyModuleDef_HEAD_INIT,
0 commit comments