commit | 655b9b6ef86c45b423a194abee2a9cd057a16a74 | [log] [tgz] |
---|---|---|
author | Vivek Jain <vivek@vivekja.in> | Wed Sep 07 10:34:25 2016 -0700 |
committer | James E. King, III <jking@apache.org> | Sat Feb 18 14:30:46 2017 -0500 |
tree | d70bcf291f0db2d9e87978b321e0946d7c3e1ba9 | |
parent | 400b346db2510fffa06c0ced11105e3618ce5367 [diff] [blame] |
THRIFT-3921: Add ostream operator<< functions for enums (working with THRIFT-4060) Client: C++ This closes #1083 This closes #1194
diff --git a/test/EnumTest.thrift b/test/EnumTest.thrift index f38cec3..7961f38 100644 --- a/test/EnumTest.thrift +++ b/test/EnumTest.thrift
@@ -71,6 +71,11 @@ e2 = 42 // fails with 0.9.3 and earlier } +enum MyEnumWithCustomOstream { + custom1 = 1, + CustoM2 +} (cpp.customostream) + struct MyStruct { 1: MyEnum2 me2_2 = MyEnum1.ME2_2 2: MyEnum3 me3_n2 = MyEnum3.ME3_N2