THRIFT-1139 C++ compilation of classes generated for an enum
Patch: Xavier Lepaul
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1094710 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/Thrift.h b/lib/cpp/src/Thrift.h
index ab6cf38..c6b31a8 100644
--- a/lib/cpp/src/Thrift.h
+++ b/lib/cpp/src/Thrift.h
@@ -43,7 +43,7 @@
namespace apache { namespace thrift {
-class TEnumIterator {
+class TEnumIterator : public std::iterator<std::forward_iterator_tag, std::pair<int, const char*> > {
public:
TEnumIterator(int n,
int* enums,