You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's very inconvenient, and brittle, to hard-code the size of the array when using an initialization list, especially long ones. Is there any work around? I hope so otherwise I'm disappointed because I hate C arrays and std::array is supposed to be their replacement.
via Stack Overflow
November 20, 2024 at 09:19AM
The text was updated successfully, but these errors were encountered:
How to create std::array with initialization list without providing size directly
https://ift.tt/hcORBIF
How can I make
a3
compile?It's very inconvenient, and brittle, to hard-code the size of the array when using an initialization list, especially long ones. Is there any work around? I hope so otherwise I'm disappointed because I hate C arrays and
std::array
is supposed to be their replacement.via Stack Overflow
November 20, 2024 at 09:19AM
The text was updated successfully, but these errors were encountered: