summaryrefslogtreecommitdiff
path: root/cpp/src/tests/InlineVector.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2008-04-17 21:46:22 +0000
committerAndrew Stitcher <astitcher@apache.org>2008-04-17 21:46:22 +0000
commitcfde776724c2f214b962dc8077ddca8305ddd705 (patch)
tree852a49ea858393a93886ac7dd3a5d0863ca4a935 /cpp/src/tests/InlineVector.cpp
parent20e4466ca57bc7bdc81ca0857549a63c77f41d8a (diff)
downloadqpid-python-cfde776724c2f214b962dc8077ddca8305ddd705.tar.gz
Patch for improved compatibility with gcc 3.4 and boost 1.33
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@649294 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/InlineVector.cpp')
-rw-r--r--cpp/src/tests/InlineVector.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/tests/InlineVector.cpp b/cpp/src/tests/InlineVector.cpp
index d1b3ebf7de..5f1a08759f 100644
--- a/cpp/src/tests/InlineVector.cpp
+++ b/cpp/src/tests/InlineVector.cpp
@@ -30,11 +30,11 @@ using namespace std;
typedef InlineVector<int, 3> 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);