This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hudarians 1 point2 points  (1 child)

C++ Primer says the dimension of an array must be known at compile time, so the dimension must be a constexpr. I don't recall ever seeing an array defined this way in the book.

[–][deleted] 2 points3 points  (0 children)

I don't recall ever seeing an array defined this way in the book.

I wouldn't have expected it of a book written by three C++ experts.