I often find myself wanting to copy the contents of arrays that have a constant size, I usually just write something along the lines of:
float a[4] = {0,1,2,
If you use std::array instead of a built-in array (which you should), it becomes very simple. Copying an array is then the same as copying any other object.
std::array
std::array a = {0,1,2,3}; std::array b = a;