From 004735c1bcaaec422fb4ffbd299d75304be5c635 Mon Sep 17 00:00:00 2001 From: andriish Date: Fri, 12 Apr 2024 11:34:10 +0200 Subject: [PATCH] Update context.cpp --- source/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/context.cpp b/source/context.cpp index d41ebdeb..620908d6 100644 --- a/source/context.cpp +++ b/source/context.cpp @@ -116,7 +116,7 @@ PYBIND11_MODULE({2}, root_module) {{ std::vector< std::pair > sub_modules {{ {3} }}; - for(auto &p : sub_modules ) modules[ !p.first.empty() ? p.first+"::"+p.second : p.second] = modules[p.first].def_submodule( mangle_namespace_name(p.second).c_str(), ("Bindings for " + p.first + "::" + p.second + " namespace").c_str() ); + for(auto &p : sub_modules ) modules[ p.first.empty() ? p.second : p.first+"::"+p.second ] = modules[p.first].def_submodule( mangle_namespace_name(p.second).c_str(), ("Bindings for " + p.first + "::" + p.second + " namespace").c_str() ); //pybind11::class_>(M(""), "_encapsulated_data_");