<bitset>
: operator[]
could be SAL annotated with _In_range_(<, _Bits)
#5262
Labels
enhancement
Something can be improved
Following
array
's example:STL/stl/inc/array
Line 533 in 2314e1a
Found while investigating STL Hardening (#5090). I'm filing a followup issue because libcxx has tests under
std/utilities/template.bitset
that will emit/analyze
warnings forbitset<0>
.if constexpr
could avoid this, but they compile their tests in older Standard modes.The text was updated successfully, but these errors were encountered: