activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmitt...@apache.org
Subject svn commit: r498339 - /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/StompCommandWriterTest.h
Date Sun, 21 Jan 2007 15:00:00 GMT
Author: nmittler
Date: Sun Jan 21 07:00:00 2007
New Revision: 498339

URL: http://svn.apache.org/viewvc?view=rev&rev=498339
Log:
[AMQCPP-49] fixing compiler warning for use of deprecated std::equals()

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/StompCommandWriterTest.h

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/StompCommandWriterTest.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/StompCommandWriterTest.h?view=diff&rev=498339&r1=498338&r2=498339
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/StompCommandWriterTest.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/StompCommandWriterTest.h
Sun Jan 21 07:00:00 2007
@@ -33,6 +33,7 @@
 #include <activemq/io/ByteArrayOutputStream.h>
 #include <activemq/io/ByteArrayInputStream.h>
 #include <algorithm>
+#include <string.h>
 
 namespace activemq{
 namespace connector{
@@ -156,8 +157,7 @@
 
             // Use STL Compare
             CPPUNIT_ASSERT( 
-                std::equal( &result[0], &result[200], 
-                            boStream.getByteArray() ) );
+                memcmp( &result[0], boStream.getByteArray(), 200 ) == 0 );
         }
 
         void testWriteAndReads() {



Mime
View raw message