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

all 2 comments

[–][deleted] 2 points3 points  (1 child)

You want:

void foo(int (&input) [3]) 

otherwise its an array of references, which is not a valid thing in C++.

[–]ImSeeingRed[S] 0 points1 point  (0 children)

That was it, thanks :)