You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/07/03 16:44:46 UTC

svn commit: r552856 - /activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h

Author: tabish
Date: Tue Jul  3 07:44:45 2007
New Revision: 552856

URL: http://svn.apache.org/viewvc?view=rev&rev=552856
Log:
https://issues.apache.org/activemq/browse/AMQCPP-93

Submitting optimized StompFrame

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h?view=diff&rev=552856&r1=552855&r2=552856
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h Tue Jul  3 07:44:45 2007
@@ -123,7 +123,8 @@
             body.clear();
 
             // Copy data to internal buffer.
-            body.insert( body.end(), bytes, bytes + numBytes );
+            std::back_insert_iterator< std::vector<unsigned char> > iter( body );
+            std::copy( bytes, bytes + numBytes, iter );
         }
 
     private: