Skip to content

Commit

Permalink
Merge pull request #1610 from jonathanhaigh/jh-cache1-ubsan
Browse files Browse the repository at this point in the history
Fix read of uninitialized bool in cache1
  • Loading branch information
ericniebler committed Apr 22, 2021
2 parents 3a16d78 + 29a8868 commit b014521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/range/v3/view/cache1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace ranges
CPP_assert(constructible_from<range_value_t<Rng>, range_reference_t<Rng>>);
friend range_access;
Rng rng_;
bool dirty_;
bool dirty_ = true;
detail::non_propagating_cache<range_value_t<Rng>> cache_;

CPP_member
Expand Down

0 comments on commit b014521

Please sign in to comment.