THRIFT-920. cpp: C++ Test and Tutorial does not compile anymore due to the change within Enum handling
Patch: Roger Meier and Christian Lavoie
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001826 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tutorial/cpp/CppClient.cpp b/tutorial/cpp/CppClient.cpp
index a3f17fe..4dac90c 100644
--- a/tutorial/cpp/CppClient.cpp
+++ b/tutorial/cpp/CppClient.cpp
@@ -53,7 +53,7 @@
printf("1+1=%d\n", sum);
Work work;
- work.op = DIVIDE;
+ work.op = Operation::DIVIDE;
work.num1 = 1;
work.num2 = 0;
@@ -64,7 +64,7 @@
printf("InvalidOperation: %s\n", io.why.c_str());
}
- work.op = SUBTRACT;
+ work.op = Operation::SUBTRACT;
work.num1 = 15;
work.num2 = 10;
int32_t diff = client.calculate(1, work);