How can a function return an array?

I read some article that said that this was possible:
declaring the function
Double GetNumbers()[];
and then later defining the function
1
2
3
4
5
6
Double GetNumbers()[]
{
    Double number[] = { 643.18, 9.64, 48.05, 14.26, 62.55 };

    return number;
}

I get an error.
error: 'GetNumbers' declared as function returning an array

What is the issue and how can I fix it?
http://ideone.com/9cfKp
Where did you read this was possible?

It's not possible for many reasons.
http://www.functionx.com/managedcpp/Lesson18.htm

Are there any good alternatives?
That is for "managed C++" aka C++/CLI, which is Microsoft's customized version of C++ which is very different from the current official C++11 standard.
Are there any good alternatives?

Normally such functions return vectors, as in std::vector<double> GetNumbers();, although if your compiler is reasonably up to date, you can return an array this way: std::array<double, 5> GetNumbers();
Topic archived. No new replies allowed.