Sirraide wrote:

> But the template argument list is certainly _morally_ const and it is 
> certainly immutable from the point of view of the caller. I think if we 
> remove all the consts there is a higher chance that we actually end up 
> mutating arguments in a persistent manner and that would be bad.

Yeah, makes sense. Copying does sound like a solution with less room for error 
if that’s feasible.

https://github.com/llvm/llvm-project/pull/104687
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to