From 1b4a961ec807e5e61cd232b08020a935a4f76f4c Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 17 Apr 2008 21:46:22 +0000 Subject: Patch for improved compatibility with gcc 3.4 and boost 1.33 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@649294 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/InlineVector.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qpid/cpp/src/tests/InlineVector.cpp') diff --git a/qpid/cpp/src/tests/InlineVector.cpp b/qpid/cpp/src/tests/InlineVector.cpp index d1b3ebf7de..5f1a08759f 100644 --- a/qpid/cpp/src/tests/InlineVector.cpp +++ b/qpid/cpp/src/tests/InlineVector.cpp @@ -30,11 +30,11 @@ using namespace std; typedef InlineVector Vec; bool isInline(const Vec& v) { - return (char*)&v <= (char*)v.data() && - (char*)v.data() < (char*)&v+sizeof(v); + return (char*)&v <= (char*)(&v[0]) && + (char*)(&v[0]) < (char*)&v+sizeof(v); } -BOOST_AUTO_TEST_CASE(testCtor) { +QPID_AUTO_TEST_CASE(testCtor) { { Vec v; BOOST_CHECK(isInline(v)); @@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE(testCtor) { } } -BOOST_AUTO_TEST_CASE(testInsert) { +QPID_AUTO_TEST_CASE(testInsert) { Vec v; v.push_back(1); BOOST_CHECK_EQUAL(v.size(), 1u); -- cgit v1.2.1