yes, thats correct!

as alternative you can use the pure_enums option to get old style cpp files:
 --gen cpp:pure_enums

-Roger



Quoting Dheeraj Goswami <[email protected]>:

Hi All,
I am trying to update to thrift 0.5.0 and
 noticed that my code failed to compiled because of enum generated code has
changed.

Earlier it was like this
namespace myns {
enum My {
  A,
  B,
};
}

Now with 0.5.0 it is like this
namespace myns {
struct My {
  enum type
 {
    A = 0,
    B = 1,
  };
};
}

Because of this, I had the calling code like myns::A that needs to be changed to myns::My::A

Is this correct and expected or am I doing something wrong?

thanks,

--dheeraj



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Reply via email to