<vector>: Silence static analysis warning C26450 by StephanTLavavej · Pull Request #5707 · microsoft/STL (original) (raw)

In certain cases (not found by our test coverage, but by the MSVC codebase's own usage), /analyze emits a false positive warning about integer overflow, when we've carefully guarded against integer overflow. @carsonRadtke has filed VSO-2565428 "C26450 FP in STL/vector" to track fixing this in /analyze. Until then, we should push-disable-pop the warning around the affected code.

Followup to #5550 and #5566. So it's time for a quote:

"I remember that we cleared this world out. We won. Is a future coming in which we will, eventually, truly, have won?"

- Ra (Abstract Weapon) by qntm