Files
toml11/toml
Moritz Klammler 8bb2c63a01 Don't compare iterators from potentially different containers
This patch addresses a static analysis issue reported by Cppcheck 2.9
where an assertion in the toml/region.hpp header would compare two
container's (that are known to be of type std::vector<char>) begin() and
end() iterators in order to verify that they are the same.  This
assertion either passes or invokes undefined behavior.  Which isn't
technically wrong because calling code must always ensure that
preconditions are met and assertions therefore pass anyway but it does
make the value that is added by having the assertion in the first place
marginal.  Fortunately, the assertion was easy to rewrite: Just compare
the container's address itself.  This is well-defined regardless of
whether the assertion will pass or fail.
2022-09-29 17:59:28 +02:00
..
2022-05-29 00:37:39 +09:00
2021-10-09 11:12:58 +09:00
2021-08-27 19:52:45 -04:00
2021-05-25 21:40:41 +09:00
2021-05-25 21:40:41 +09:00
2021-08-27 19:52:45 -04:00