Y
Hacker News
new
|
ask
|
show
|
jobs
by
user5994461
3366 days ago
The point of the parent was to write C++ code the C++ way. Most arrays in real programs should be std::vector.
Imitating C arrays with std::array is the perfect example of bastardized C/C++ code.
1 comments
lossolo
3366 days ago
Using std::array is writing code C++ way. If you know size of the array compile time and you know it will fit the stack then there is no reason to use std::vector.
link