Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56843 - trunk/libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-10-14 15:16:11


Author: hkaiser
Date: 2009-10-14 15:16:10 EDT (Wed, 14 Oct 2009)
New Revision: 56843
URL: http://svn.boost.org/trac/boost/changeset/56843

Log:
Spirit: fixing test for VC7.1
Text files modified:
   trunk/libs/spirit/test/qi/list.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/spirit/test/qi/list.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/list.cpp (original)
+++ trunk/libs/spirit/test/qi/list.cpp 2009-10-14 15:16:10 EDT (Wed, 14 Oct 2009)
@@ -79,8 +79,8 @@
         std::vector<boost::optional<std::string> > v;
         BOOST_TEST(test_attr("#a,#", ('#' >> -alpha) % ',', v));
         BOOST_TEST(2 == v.size() &&
- v[0] && "a" == boost::get<std::string>(v[0]) &&
- v[1] && boost::get<std::string>(v[1]).size() == 1 &&
+ !!v[0] && "a" == boost::get<std::string>(v[0]) &&
+ !!v[1] && boost::get<std::string>(v[1]).size() == 1 &&
                     boost::get<std::string>(v[1])[0] == '\0');
     }
 


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