Double GetNumbers()[]; |
|
error: 'GetNumbers' declared as function returning an array |
| Are there any good alternatives? |
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();