Skip to content
Snippets Groups Projects
Verified Commit 75b6ce66 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

C++20: add note for std::fill that cannot be replaced by std::ranges::fill

parent 743ccf77
No related branches found
No related tags found
No related merge requests found
......@@ -4397,6 +4397,8 @@ DynamicModel::OccbinRegimeTracker::checkAllRegimesPresent() const
if (it == r.end())
break;
*it = true;
/* NB: cannot use ranges::fill since vector<bool>::iterator does not satisfy
indirectly_writable concept. Should be fixed in C++23: https://wg21.link/p2321 */
fill(r.begin(), it, false);
}
while (true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment