I have an enum with four keys I'm taking as input for an interface program and I'd like to pass the enum by value to the interface function, which has become quite long. The enum is like this:
enum MYKEYS {
W, S, O, L
};
There's also a boolean array that I have to pass by reference, which is also a little tricky.
bool key[4] = { false, false, false, false };
Does anyone know the proper syntax to pass both of these as reference in a function, similar to:
function(int & anintreference);