@@ -356,8 +356,6 @@ struct smart_holder_type_caster_class_hooks : smart_holder_type_caster_base_tag
356356 auto *holder_void_ptr = const_cast <void *>(holder_const_void_ptr);
357357
358358 auto v_h = inst->get_value_and_holder (detail::get_type_info (typeid (WrappedType)));
359- printf (" \n LOOOK [%lu] %s:%d\n " , (std::size_t ) v_h.value_ptr (), __FILE__, __LINE__); fflush (stdout);
360- // long *BAD = nullptr; *BAD = 101;
361359 if (!v_h.instance_registered ()) {
362360 register_instance (inst, v_h.value_ptr (), v_h.type );
363361 v_h.set_instance_registered ();
@@ -644,7 +642,6 @@ struct smart_holder_type_caster : smart_holder_type_caster_load<T>,
644642 }
645643
646644 static handle cast (T const *src, return_value_policy policy, handle parent) {
647- printf (" \n LOOOK [%lu] IsBase0Still %s:%d\n " , (std::size_t ) src, __FILE__, __LINE__); fflush (stdout);
648645 auto st = type_caster_base<T>::src_and_type (src);
649646 return cast_const_raw_ptr ( // Originally type_caster_generic::cast.
650647 st.first ,
@@ -691,7 +688,6 @@ struct smart_holder_type_caster : smart_holder_type_caster_load<T>,
691688 void *(*copy_constructor)(const void *),
692689 void *(*move_constructor)(const void *),
693690 const void *existing_holder = nullptr) {
694- printf (" \n LOOOK [%lu] IsDerivedAlready %s:%d\n " , (std::size_t ) _src, __FILE__, __LINE__); fflush (stdout);
695691 if (!tinfo) { // no type info: error will be set already
696692 return handle ();
697693 }
@@ -784,7 +780,6 @@ struct smart_holder_type_caster<std::shared_ptr<T>> : smart_holder_type_caster_l
784780 static constexpr auto name = const_name<T>();
785781
786782 static handle cast (const std::shared_ptr<T> &src, return_value_policy policy, handle parent) {
787- printf (" \n LOOOK [%lu] %s:%d\n " , (std::size_t ) src.get (), __FILE__, __LINE__); fflush (stdout);
788783 switch (policy) {
789784 case return_value_policy::automatic:
790785 case return_value_policy::automatic_reference:
@@ -826,10 +821,9 @@ struct smart_holder_type_caster<std::shared_ptr<T>> : smart_holder_type_caster_l
826821 inst_raw_ptr->owned = true ;
827822 void *&valueptr = values_and_holders (inst_raw_ptr).begin ()->value_ptr ();
828823 valueptr = src_raw_void_ptr;
829- printf (" \n LOOOK [%lu] IsBase0 %s:%d\n " , (std::size_t ) valueptr, __FILE__, __LINE__); fflush (stdout);
830- printf (" \n LOOOK [%lu] IsDerived %s:%d\n " , (std::size_t ) st.first , __FILE__, __LINE__); fflush (stdout);
831824
832- auto smhldr = pybindit::memory::smart_holder::from_shared_ptr (std::shared_ptr<void >(src, const_cast <void *>(st.first )));
825+ auto smhldr = pybindit::memory::smart_holder::from_shared_ptr (
826+ std::shared_ptr<void >(src, const_cast <void *>(st.first )));
833827 tinfo->init_instance (inst_raw_ptr, static_cast <const void *>(&smhldr));
834828
835829 if (policy == return_value_policy::reference_internal) {
0 commit comments