Re: [protobuf] Proto compiler creating Strong Type Enum

2017-07-06 Thread Abhi
I am using --structs_out command along with --cpp_outhence it is creating struct.h files ... On Thursday, 6 July 2017 23:39:55 UTC+5:30, Feng Xiao wrote: > > > > On Wed, Jul 5, 2017 at 9:07 PM, Abhi > > wrote: > >> Hi >> >> I am using proto compiler 3.1 and it's a C++ project. >> >> When

Re: [protobuf] Proto compiler creating Strong Type Enum

2017-07-06 Thread 'Feng Xiao' via Protocol Buffers
On Wed, Jul 5, 2017 at 9:07 PM, Abhi wrote: > Hi > > I am using proto compiler 3.1 and it's a C++ project. > > When I compile my proto Its generating myproto.struct.h file along with > myproto.pb.cc and myproto.pb.h. > I don't think protoc generates .struct.h file. Is it coming from some plugin y

Re: [protobuf] Proto compiler creating Strong Type Enum

2017-07-05 Thread Marc Gravell
Strongly typed enums are supported in Visual Studio 2012 but not 2010 (at least, not properly). I don't know if there's a protoc option to support down-level C++, but : updating to a more recent VS version might be an option. I acknowledge that this is not necessarily trivial. For reference, the C+