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 1f41e72 commit 68524f5Copy full SHA for 68524f5
include/pybind11/pybind11.h
@@ -863,7 +863,7 @@ class module_ : public object {
863
864
/// Create a new top-level Python module with the given name and docstring
865
#if PY_MAJOR_VERSION >= 3
866
- explicit module(const char *name, const char *doc = nullptr, PyModuleDef *def = nullptr) {
+ explicit module_(const char *name, const char *doc = nullptr, PyModuleDef *def = nullptr) {
867
if (!def) def = new PyModuleDef();
868
def = new (def) PyModuleDef { // Placement new (not an allocation).
869
/* m_base */ PyModuleDef_HEAD_INIT,
0 commit comments