Author: nmittler
Date: Tue Nov 28 16:32:29 2006
New Revision: 480303

URL: http://svn.apache.org/viewvc?view=rev&rev=480303
Log:
[AMQCPP-16] Fix for compilation of Map on Windows

Modified:
    
incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/Map.h

Modified: 
incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/Map.h
URL: 
http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/Map.h?view=diff&rev=480303&r1=480302&r2=480303
==============================================================================
--- 
incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/Map.h 
(original)
+++ 
incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/Map.h 
Tue Nov 28 16:32:29 2006
@@ -144,13 +144,15 @@
     
////////////////////////////////////////////////////////////////////////////
     template <typename K, typename V>
     std::vector<K> Map<K,V>::getKeys() const{
-        std::vector<K> values(valueMap.size());
+        std::vector<K> keys(valueMap.size());
         
         typename std::map<K,V>::const_iterator iter;
         iter=valueMap.begin();
         for( int ix=0; iter != valueMap.end(); ++iter, ++ix ){
-            values[ix] = iter->first;
+            keys[ix] = iter->first;
         }
+        
+        return keys;
     }
     
     
////////////////////////////////////////////////////////////////////////////
@@ -163,6 +165,8 @@
         for( int ix=0; iter != valueMap.end(); ++iter, ++ix ){
             values[ix] = iter->second;
         }
+        
+        return values;
     }
 
 }}


Reply via email to