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

Reply via email to