THRIFT-1139 C++ compilation of classes generated for an enum
authorRoger Meier <roger@apache.org>
Mon, 18 Apr 2011 19:46:02 +0000 (19:46 +0000)
committerRoger Meier <roger@apache.org>
Mon, 18 Apr 2011 19:46:02 +0000 (19:46 +0000)
Patch: Xavier Lepaul

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1094710 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/Thrift.h

index ab6cf38..c6b31a8 100644 (file)
@@ -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,