Maybe returning a std::vector would be better.