Closed
Description
Bugzilla Link | 48056 |
Version | trunk |
OS | All |
CC | @zygoloid |
Extended Description
Forgive me, this one's a bit hard to describe and/or search for, so it's possibly a duplicate.
#include <array>
#include <utility>
struct Foo {
int n;
};
constexpr bool foo() {
constexpr std::array<Foo, 2> foos = { 1, 2 };
[&]<std::size_t... is>(std::index_sequence<is...>) {
([&](std::array<int, foos[is].n>) {}, ...);
}(std::make_index_sequence<size(foos)>());
return true;
}
static_assert(foo());
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done