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