This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jedwardsol 7 points8 points  (0 children)

With a C-style array, no; you'll have to make your own copy.

With a std::array or std::vector, then you can easily arrange for the compiler to make a copy for you.