P3139R2 — Pointer cast for unique_ptr
Zhihao Yuan, Jordan Saxonberg
LEWG
We propose `unique_ptr` overloads for `std::const_pointer_cast` and `std::dynamic_pointer_cast`. For each kind of cast, we allow users to choose between either using the defaulted deleter or preserving the original deleter type for each kind of cast.