Hi,
if i got your question correctly then In C++ this works fine.
enum JOBSTATE{
INITIALIZE = 0,
RUNNING = 1,
FINISHED = 2
}
Thanks,
Tarun
On Sun, Oct 28, 2012 at 11:15 AM, Matt Chambers <[email protected]> wrote:
> Anyone have any example code on how to use the thrift generated
> enumerations in C++? I'm not sure what to do with this:
>
> struct JobState {
> enum type {
> INITIALIZE = 0,
> RUNNING = 1,
> FINISHED = 2
> };
> };
>
> In Java its easy, JobState.RUNNING, no such thing in C++.
>
> -Matt
>
>
>
--
Regards,
Tarun