Skip to content

Commit

Permalink
add check for copy-contractor skipping request
Browse files Browse the repository at this point in the history
  • Loading branch information
lyskov committed Sep 9, 2024
1 parent 7ba2ad1 commit 9f10890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ void ClassBinder::bind(Context &context)
if( t->getAccess() == AS_public and !t->isMoveConstructor() and is_bindable(*t) and !is_skipping_requested(*t, Config::get()) /*and t->doesThisDeclarationHaveABody()*/ ) {
ConstructorBindingInfo CBI = {C, *t, trampoline, qualified_name, trampoline_name, context};

if( t->isCopyConstructor() /*and not copy_constructor_processed*/ ) {
if( t->isCopyConstructor() /*and not copy_constructor_processed*/ and !is_skipping_requested(*t, Config::get() ) {
// constructors += "\tcl.def(pybind11::init<{} const &>());\n"_format(binding_qualified_name);
//(*t) -> dump();
constructors += bind_copy_constructor(CBI);
Expand Down

0 comments on commit 9f10890

Please sign in to comment.