I copy and pasted this exact code, found here into my IDE, and got an error, I don't understand why it's happening and would like to learn why.
std::array<int, 3> a2 = {1, 2, 3}; // except after =
Make sure to remember #include <array>
But if you don't include any standard headers, you should get a simpler error about
std
being undefined.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With