Type conversion to vector in C++
c++
Solution
That should be easy, since repeated fields act as containers:
void foo(RepeatedField<google::protobuf::uint32> const & f)
{
std::vector<double> v(f.begin(), f.end());
// use v
}
Problem
How to convert a `RepeatedField<google::protobuf::uint32>` to a `const std::vector<double>`?