Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59956 - trunk/libs/unordered/test/unordered
From: daniel_james_at_[hidden]
Date: 2010-02-26 15:50:22


Author: danieljames
Date: 2010-02-26 15:50:21 EST (Fri, 26 Feb 2010)
New Revision: 59956
URL: http://svn.boost.org/trac/boost/changeset/59956

Log:
Try to avoid a warning.
Text files modified:
   trunk/libs/unordered/test/unordered/fwd_set_test.cpp | 3 +--
   1 files changed, 1 insertions(+), 2 deletions(-)

Modified: trunk/libs/unordered/test/unordered/fwd_set_test.cpp
==============================================================================
--- trunk/libs/unordered/test/unordered/fwd_set_test.cpp (original)
+++ trunk/libs/unordered/test/unordered/fwd_set_test.cpp 2010-02-26 15:50:21 EST (Fri, 26 Feb 2010)
@@ -57,8 +57,7 @@
     boost::unordered_set<int> x;
     BOOST_TEST(sizeof(is_unordered_set_impl(&x)) == sizeof(true_type));
 
- int dummy;
- BOOST_TEST(sizeof(is_unordered_set_impl(&dummy)) == sizeof(false_type));
+ BOOST_TEST(sizeof(is_unordered_set_impl((int*) 0)) == sizeof(false_type));
 }
 
 UNORDERED_AUTO_TEST(use_set_fwd_declared_function) {


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