There is actually a predicate for this specific use-case: SetArrayArgument
(see Google Mock CookBook
Your code would then become:
double a_mockedValues[] = { 1., 2. };
ON_CALL(myMock, myFunc(_)).WillByDefault(SetArrayArgument<0>(a_mockedValues, a_mockedValues + 2));