| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| debug | ||
| requirements/explicit_instantiation | ||
| 1.cc | ||
| 2.cc | ||
| 25306.cc | ||
| 35725.cc | ||
| 87982.cc | ||
| 87982_neg.cc | ||
| 94017.cc | ||
| constexpr.cc | ||
| constrained.cc | ||
| dr426.cc |
The overload for byte types uses memset and isn't constexpr. This adds the specifier and uses std::is_constant_evaluated() to provide a compile-time alternative. Backport from mainline 2020-05-03 Jonathan Wakely <jwakely@redhat.com> PR libstdc++/94933 * include/bits/stl_algobase.h (__fill_a1): Make overload for byte types usable in constant expressions. * testsuite/25_algorithms/fill_n/constexpr.cc: Test with bytes and non-scalars.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| debug | Loading commit data... | |
| requirements/explicit_instantiation | Loading commit data... | |
| 1.cc | Loading commit data... | |
| 2.cc | Loading commit data... | |
| 25306.cc | Loading commit data... | |
| 35725.cc | Loading commit data... | |
| 87982.cc | Loading commit data... | |
| 87982_neg.cc | Loading commit data... | |
| 94017.cc | Loading commit data... | |
| constexpr.cc | Loading commit data... | |
| constrained.cc | Loading commit data... | |
| dr426.cc | Loading commit data... |