https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68642

--- Comment #3 from wmhkebe at gmail dot com ---
(In reply to Jonathan Wakely from comment #2)
> N.B. 100k is not "moderately large" it's far larger than any real parameter
> pack is ever likely to be, and the primary purpose of index_sequence is to
> index into parameter packs.

Thanks for the prompt reply Jonathan!

Just a little background about my use case. I want to initialize a constexpr
std::array<int, 100k> with a constexpr function f, with a[i]=f(i), without
needing to repeat my code for 100k times like a = {f(0), f(1), f(2), ...}. 100k
is a reasonable size for an int array, so I expected it also to be feasible for
std::make_index_sequence, provided that clang can handle it pretty efficiently.
Thanks again!

Reply via email to