[rhmessaging-commits] rhmessaging commits: r4364 - store/trunk/cpp/tests/jrnl.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Oct 1 08:24:10 EDT 2010


Author: kpvdr
Date: 2010-10-01 08:24:10 -0400 (Fri, 01 Oct 2010)
New Revision: 4364

Modified:
   store/trunk/cpp/tests/jrnl/_ut_jinf.cpp
Log:
Changed use of std::vector:data() for more portable solution. RHEL-4 did not like the data() member.

Modified: store/trunk/cpp/tests/jrnl/_ut_jinf.cpp
===================================================================
--- store/trunk/cpp/tests/jrnl/_ut_jinf.cpp	2010-09-30 18:30:44 UTC (rev 4363)
+++ store/trunk/cpp/tests/jrnl/_ut_jinf.cpp	2010-10-01 12:24:10 UTC (rev 4364)
@@ -325,7 +325,7 @@
             BOOST_FAIL("Unable to open test journal file \"" << filename << "\" for writing.");
         std::size_t expand_size = std::size_t(10 * JRNL_DBLK_SIZE * JRNL_SBLK_SIZE * ::drand48());
         std::vector<char> sblk_buffer(expand_size, 0);
-        of.write(sblk_buffer.data(), expand_size);
+        of.write(&sblk_buffer[0], expand_size);
         of.close();
 
         stringstream fn;



More information about the rhmessaging-commits mailing list