When there is parameter aliasing, the ensureCapacity calls can cause the Const parameters to become dangling pointers. See #6167
When there is parameter aliasing, the ensureCapacity calls can cause the Const parameters to become dangling pointers. See #6167