From: David Reiss Date: Thu, 21 May 2009 02:28:23 +0000 (+0000) Subject: cpp: Fix an OpenBSD compilation bug by moving a typedef X-Git-Tag: 0.2.0~106 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=2ff956c605561d70a3e9a2748ab44b259234eb7f;p=common%2Fthrift.git cpp: Fix an OpenBSD compilation bug by moving a typedef 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 --- diff --git a/lib/cpp/src/concurrency/TimerManager.cpp b/lib/cpp/src/concurrency/TimerManager.cpp index 25515dc8..861a62f5 100644 --- a/lib/cpp/src/concurrency/TimerManager.cpp +++ b/lib/cpp/src/concurrency/TimerManager.cpp @@ -29,9 +29,6 @@ namespace apache { namespace thrift { namespace concurrency { using boost::shared_ptr; -typedef std::multimap >::iterator task_iterator; -typedef std::pair task_range; - /** * TimerManager class * diff --git a/lib/cpp/src/concurrency/TimerManager.h b/lib/cpp/src/concurrency/TimerManager.h index f3f799f9..dfbf0ea4 100644 --- a/lib/cpp/src/concurrency/TimerManager.h +++ b/lib/cpp/src/concurrency/TimerManager.h @@ -113,6 +113,8 @@ class TimerManager { friend class Dispatcher; boost::shared_ptr dispatcher_; boost::shared_ptr dispatcherThread_; + typedef std::multimap >::iterator task_iterator; + typedef std::pair task_range; }; }}} // apache::thrift::concurrency