Re: [protobuf] C++0x enum class

2011-08-24 Thread Christopher Smith
You can always modify the compiler with a plugin.

--Chris

On Tue, Aug 23, 2011 at 12:36 AM, Christopher Head hea...@gmail.com wrote:
 Hi,
 Does anyone know if Protobuf's C++ output is ever going to support
 enum classes? I'd like to be able to define the elements of my enum in
 just one place (i.e. in the message definition file) and then use that
 definition throughout my program, but I'd like it to be defined as an
 enum class rather than an old-style non-type-safe enum.

 Chris

 --
 You received this message because you are subscribed to the Google Groups 
 Protocol Buffers group.
 To post to this group, send email to protobuf@googlegroups.com.
 To unsubscribe from this group, send email to 
 protobuf+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/protobuf?hl=en.





-- 
Chris

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] C++0x enum class

2011-08-23 Thread Christopher Head
Hi,
Does anyone know if Protobuf's C++ output is ever going to support
enum classes? I'd like to be able to define the elements of my enum in
just one place (i.e. in the message definition file) and then use that
definition throughout my program, but I'd like it to be defined as an
enum class rather than an old-style non-type-safe enum.

Chris

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.