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++ version support table for VS is here: https://msdn.microsoft.com/en-us/library/hh567368.aspx
On 6 Jul 2017 5:07 a.m., "Abhi" <abhilash.ec...@gmail.com> 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. So the issue is in my myproto.struct.h the enum is created as strong typed enum and when I compile this file with VS2010 I am getting compiler error as its not supported in VS2010. Could anyone please let me know how to solve this problem. Please do the needful. enum xyz {} enum class xyz{} -->Strong typed enum -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.