@@ -356,8 +356,6 @@ struct smart_holder_type_caster_class_hooks : smart_holder_type_caster_base_tag
356
356
auto *holder_void_ptr = const_cast <void *>(holder_const_void_ptr);
357
357
358
358
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;
361
359
if (!v_h.instance_registered ()) {
362
360
register_instance (inst, v_h.value_ptr (), v_h.type );
363
361
v_h.set_instance_registered ();
@@ -652,7 +650,6 @@ struct smart_holder_type_caster : smart_holder_type_caster_load<T>,
652
650
}
653
651
654
652
static handle cast (T const *src, return_value_policy policy, handle parent) {
655
- printf (" \n LOOOK [%lu] IsBase0Still %s:%d\n " , (std::size_t ) src, __FILE__, __LINE__); fflush (stdout);
656
653
auto st = type_caster_base<T>::src_and_type (src);
657
654
if (policy == return_value_policy::_clif_automatic) {
658
655
policy = return_value_policy::copy;
@@ -705,7 +702,6 @@ struct smart_holder_type_caster : smart_holder_type_caster_load<T>,
705
702
void *(*copy_constructor)(const void *),
706
703
void *(*move_constructor)(const void *),
707
704
const void *existing_holder = nullptr) {
708
- printf (" \n LOOOK [%lu] IsDerivedAlready %s:%d\n " , (std::size_t ) _src, __FILE__, __LINE__); fflush (stdout);
709
705
if (!tinfo) { // no type info: error will be set already
710
706
return handle ();
711
707
}
@@ -798,7 +794,6 @@ struct smart_holder_type_caster<std::shared_ptr<T>> : smart_holder_type_caster_l
798
794
static constexpr auto name = const_name<T>();
799
795
800
796
static handle cast (const std::shared_ptr<T> &src, return_value_policy policy, handle parent) {
801
- printf (" \n LOOOK [%lu] %s:%d\n " , (std::size_t ) src.get (), __FILE__, __LINE__); fflush (stdout);
802
797
switch (policy) {
803
798
case return_value_policy::automatic:
804
799
case return_value_policy::automatic_reference:
@@ -840,10 +835,9 @@ struct smart_holder_type_caster<std::shared_ptr<T>> : smart_holder_type_caster_l
840
835
inst_raw_ptr->owned = true ;
841
836
void *&valueptr = values_and_holders (inst_raw_ptr).begin ()->value_ptr ();
842
837
valueptr = src_raw_void_ptr;
843
- printf (" \n LOOOK [%lu] IsBase0 %s:%d\n " , (std::size_t ) valueptr, __FILE__, __LINE__); fflush (stdout);
844
- printf (" \n LOOOK [%lu] IsDerived %s:%d\n " , (std::size_t ) st.first , __FILE__, __LINE__); fflush (stdout);
845
838
846
- auto smhldr = pybindit::memory::smart_holder::from_shared_ptr (std::shared_ptr<void >(src, const_cast <void *>(st.first )));
839
+ auto smhldr = pybindit::memory::smart_holder::from_shared_ptr (
840
+ std::shared_ptr<void >(src, const_cast <void *>(st.first )));
847
841
tinfo->init_instance (inst_raw_ptr, static_cast <const void *>(&smhldr));
848
842
849
843
if (policy == return_value_policy::reference_internal) {
0 commit comments