[protobuf] Any way to initialize a protobuf with an initializer_list in c++?

2016-10-25 Thread Alex Shaver
I have some cases where I want to be able to populate protobufs with values known at compile time (though I've also had runtime cases as well). As it is, it seems I have to create a protobuf, then go in and 'set' many of the fields, or grab 'mutable' versions of them to modify. Could this be a

[protobuf] ParseFromString errors on MAC

2016-10-25 Thread Junhao Wen
So I install protobuf on my MAC(10.11.6) and I use it to read a proto file(.proto), I use this function, ParseFromString(), but I always got error, this time, i followed your suggestion to install protobuf from source, not pip or brew, so I got another error: > * File >> "/Users/junhao.wen/