Restoring init_holder overload for std::enable_shared_from_this and original tests/test_smart_ptr.py.

This commit is contained in:
Ralf W. Grosse-Kunstleve
2021-06-01 13:17:05 -07:00
committed by Ralf W. Grosse-Kunstleve
parent e5b38a4459
commit 7a74bfede7
2 changed files with 5 additions and 13 deletions

View File

@@ -1577,7 +1577,6 @@ private:
}
// clang-format off
#ifdef JUNK
/// Initialize holder object, variant 1: object derives from enable_shared_from_this
template <typename T>
static void init_holder(detail::instance *inst, detail::value_and_holder &v_h,
@@ -1595,7 +1594,6 @@ private:
v_h.set_holder_constructed();
}
}
#endif
static void init_holder_from_existing(const detail::value_and_holder &v_h,
const holder_type *holder_ptr, std::true_type /*is_copy_constructible*/) {