[asterisk-scf-commits] asterisk-scf/integration/util-cpp.git branch "route_replica" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Apr 25 14:25:44 CDT 2011


branch "route_replica" has been updated
       via  8f69dc4c01a2fe68b8a6e32a7da9b5b6cc42fec2 (commit)
      from  ba171d9e8fa0a15a43dd11400dbb150a9ce53c40 (commit)

Summary of changes:
 .../AsteriskSCF/StateMachine/SimpleStateMachine.h  |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 8f69dc4c01a2fe68b8a6e32a7da9b5b6cc42fec2
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Mon Apr 25 14:24:11 2011 -0500

    Resolved gcc compilation problems.

diff --git a/StateMachine/include/AsteriskSCF/StateMachine/SimpleStateMachine.h b/StateMachine/include/AsteriskSCF/StateMachine/SimpleStateMachine.h
index f6cbe88..dc6d248 100644
--- a/StateMachine/include/AsteriskSCF/StateMachine/SimpleStateMachine.h
+++ b/StateMachine/include/AsteriskSCF/StateMachine/SimpleStateMachine.h
@@ -98,7 +98,7 @@ public:
         mListeners.erase(std::remove(mListeners.begin(), mListeners.end(), listener), mListeners.end());
     }
 
-    int getNumListeners()
+    size_t getNumListeners()
     {
         return mListeners.size();
     }
@@ -113,7 +113,7 @@ public:
         mStates[state] = handler;
     }
 
-    int getNumStates()
+    size_t getNumStates()
     {
         return mStates.size();
     }
@@ -138,7 +138,8 @@ public:
         // Notify all listeners that execution is starting.
         sendExecutionStartNotice(mCurrentState);
 
-        std::map<S, boost::function<void ()> >::iterator it = mStates.find(mCurrentState);
+        typename std::map< S, boost::function< void () > >::iterator it = mStates.find(mCurrentState);
+
         if (it != mStates.end())
         {
             // Execute

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/util-cpp.git



More information about the asterisk-scf-commits mailing list