22b6b5d6cf
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. 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. |
||
---|---|---|
.. | ||
debug | ||
requirements/explicit_instantiation | ||
1.cc | ||
2.cc | ||
25306.cc | ||
35725.cc | ||
87982_neg.cc | ||
87982.cc | ||
94017.cc | ||
constexpr.cc | ||
constrained.cc | ||
dr426.cc |