Set array dimensions in composite type

You can solve this problem the same way, with meta programming. The only thing to keep in mind is to interpolate the N variable into the evaluated expression with $(N).

2 Likes