aaronpuchert wrote:

Having all protected/private constructors or a protected/private destructor is 
sometimes used to prevent construction of base class objects, but other (e.g. 
static) methods inside the class can still call them. So accessibility can only 
serve as a heuristic that the constructor can't be called as complete object 
constructor.

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

Reply via email to