cpp: Fix an OpenBSD compilation bug by moving a typedef
authorDavid Reiss <dreiss@apache.org>
Thu, 21 May 2009 02:28:23 +0000 (02:28 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 21 May 2009 02:28:23 +0000 (02:28 +0000)
The typedef was aliasing a private type, which is apparently illegal.
Moving it into the class definition fixed it.

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

lib/cpp/src/concurrency/TimerManager.cpp
lib/cpp/src/concurrency/TimerManager.h

index 25515dc..861a62f 100644 (file)
@@ -29,9 +29,6 @@ namespace apache { namespace thrift { namespace concurrency {
 
 using boost::shared_ptr;
 
-typedef std::multimap<int64_t, shared_ptr<TimerManager::Task> >::iterator task_iterator;
-typedef std::pair<task_iterator, task_iterator> task_range;
-
 /**
  * TimerManager class
  *
index f3f799f..dfbf0ea 100644 (file)
@@ -113,6 +113,8 @@ class TimerManager {
   friend class Dispatcher;
   boost::shared_ptr<Dispatcher> dispatcher_;
   boost::shared_ptr<Thread> dispatcherThread_;
+  typedef std::multimap<int64_t, boost::shared_ptr<TimerManager::Task> >::iterator task_iterator;
+  typedef std::pair<task_iterator, task_iterator> task_range;
 };
 
 }}} // apache::thrift::concurrency