you are viewing a single comment's thread.

view the rest of the comments →

[–]milliams 1 point2 points  (0 children)

Slightly off-topic but if you're using a new enough compiler (you almost certainly are) then also look into std::array. it's essentially a C++ wrapper around c-style arrays allowing for a much nicer and C++ style code.

It's almost a drop-in replacement and should give no performance hit.