summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-12-10 09:04:51 -0800
committerMark Spruiell <mes@zeroc.com>2012-12-10 09:04:51 -0800
commit32490d84ceebae499bbe2048e08bbbe8c38ca6af (patch)
tree1ab7ec68f5411e0f039df420b888f49c2cc1103d /cpp
parentICE-5116 - Bumped watch dog timeout to 4 minutes (diff)
downloadice-32490d84ceebae499bbe2048e08bbbe8c38ca6af.tar.bz2
ice-32490d84ceebae499bbe2048e08bbbe8c38ca6af.tar.xz
ice-32490d84ceebae499bbe2048e08bbbe8c38ca6af.zip
ICE-5124 - compile failure in optional test
Diffstat (limited to 'cpp')
-rw-r--r--cpp/test/Ice/optional/AllTests.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/test/Ice/optional/AllTests.cpp b/cpp/test/Ice/optional/AllTests.cpp
index ecaa1d44d26..4332be765cf 100644
--- a/cpp/test/Ice/optional/AllTests.cpp
+++ b/cpp/test/Ice/optional/AllTests.cpp
@@ -1021,8 +1021,9 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated)
IceUtil::Optional<FixedStructSeq> p2 = initial->opFixedStructSeq(p1, p3);
test(!p2 && !p3);
- p1 = std::pair<const FixedStruct*, const FixedStruct*>(0, 0);
- p2 = initial->opFixedStructSeq(p1, p3);
+ std::pair<const FixedStruct*, const FixedStruct*> p;
+ p.first = p.second = 0;
+ p2 = initial->opFixedStructSeq(p, p3);
test(p2 && p3 && p2.get().empty() && p3.get().empty());
FixedStruct fss[10];