Is this possible in C or C++? I have a function with the following declaration:
int foo(double*)
And I am trying to do something like this:
foo([] = {1.0, 2.0, 3.0, 4.0});
I know that I can create an array separately, but I am curious if I can do it that way.
Thanks.
syntax error : '=', using VS 2012.