================
@@ -254,6 +254,9 @@ class CanMakeWeakPtrBase {
   void initializeWeakPtrFactory() const {
     auto &this_to_T = static_cast<const WeakPtrFactoryType&>(*this);
   }
+  void initializeWeakPtrFactoryReinterpret() const {
+    auto &this_to_T = reinterpret_cast<const WeakPtrFactoryType&>(*this);
----------------
rniwa wrote:

Hm... I think we want to only permit this type of cast when the type we're 
casting to is a CRTP parameter, not whenever we're casting `this` or `*this`.

https://github.com/llvm/llvm-project/pull/210180
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to