Skip to content

Commit

Permalink
Update all-in-one header
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed May 24, 2024
1 parent 16a810c commit 1345a86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include_all_in_one/include/fplus/fplus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4733,7 +4733,8 @@ Container intersperse(const X& value, const Container& xs)
if (xs.empty())
return Container();
if (size_of_cont(xs) == 1)
return xs;
// workaround for array-bounds false positive in GCC 14, see https://github.com/Dobiasd/FunctionalPlus/issues/301
return Container({ xs.front() });
Container result;
internal::prepare_container(result, std::max<std::size_t>(0, size_of_cont(xs) * 2 - 1));
auto it = internal::get_back_inserter(result);
Expand Down

0 comments on commit 1345a86

Please sign in to comment.