From 1236eb231847b6eded2b96f3563b6b60a59daf9c Mon Sep 17 00:00:00 2001 From: andriish Date: Fri, 12 Apr 2024 01:27:44 +0200 Subject: [PATCH] Update generated code template in context.cpp to avoid else after return (#292) --- source/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/context.cpp b/source/context.cpp index aaf199b3..2c57ecda 100644 --- a/source/context.cpp +++ b/source/context.cpp @@ -110,7 +110,7 @@ PYBIND11_MODULE({2}, root_module) {{ auto mangle_namespace_name( [](std::string const &ns) -> std::string {{ if ( std::find(reserved_python_words.begin(), reserved_python_words.end(), ns) == reserved_python_words.end() ) return ns; - else return ns+'_'; + return ns+'_'; }} );