You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by nm...@apache.org on 2007/01/21 16:00:00 UTC

svn commit: r498339 - /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/StompCommandWriterTest.h

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() {