Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57919 - trunk/libs/unordered/test/unordered
From: daniel_james_at_[hidden]
Date: 2009-11-25 04:09:27


Author: danieljames
Date: 2009-11-25 04:09:25 EST (Wed, 25 Nov 2009)
New Revision: 57919
URL: http://svn.boost.org/trac/boost/changeset/57919

Log:
Try to avoid an odd warning from Visual C++
Text files modified:
   trunk/libs/unordered/test/unordered/incomplete_test.cpp | 9 +++++----
   1 files changed, 5 insertions(+), 4 deletions(-)

Modified: trunk/libs/unordered/test/unordered/incomplete_test.cpp
==============================================================================
--- trunk/libs/unordered/test/unordered/incomplete_test.cpp (original)
+++ trunk/libs/unordered/test/unordered/incomplete_test.cpp 2009-11-25 04:09:25 EST (Wed, 25 Nov 2009)
@@ -32,8 +32,9 @@
     test::set s1;
     test::multiset s2;
     
- m1[test::value()] = test::value();
- m2.insert(std::make_pair(test::value(), test::value()));
- s1.insert(test::value());
- s2.insert(test::value());
+ test::value x;
+ m1[x] = x;
+ m2.insert(std::make_pair(x, x));
+ s1.insert(x);
+ s2.insert(x);
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk