How to convert a RepeatedField<google::protobuf::uint32> to a const std::vector<double>?
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
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With