Skip to content

Commit f29d98d

Browse files
committed
Add link to issue in the comment
1 parent 42035c4 commit f29d98d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/fplus/container_common.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,8 @@ Container intersperse(const X& value, const Container& xs)
16381638
if (xs.empty())
16391639
return Container();
16401640
if (size_of_cont(xs) == 1)
1641-
return Container({ xs.front() }); // workaround for array-bounds false positive in GCC 14
1641+
// workaround for array-bounds false positive in GCC 14, see https://github.com/Dobiasd/FunctionalPlus/issues/301
1642+
return Container({ xs.front() });
16421643
Container result;
16431644
internal::prepare_container(result, std::max<std::size_t>(0, size_of_cont(xs) * 2 - 1));
16441645
auto it = internal::get_back_inserter(result);

0 commit comments

Comments
 (0)