|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68274 - trunk/libs/spirit/phoenix/example/users_manual
From: joel_at_[hidden]
Date: 2011-01-19 06:20:36
Author: djowel
Date: 2011-01-19 06:20:30 EST (Wed, 19 Jan 2011)
New Revision: 68274
URL: http://svn.boost.org/trac/boost/changeset/68274
Log:
fixes Ticket #3418
Text files modified:
trunk/libs/spirit/phoenix/example/users_manual/all_odds.cpp | 4 ++--
trunk/libs/spirit/phoenix/example/users_manual/function.cpp | 14 +++++++-------
2 files changed, 9 insertions(+), 9 deletions(-)
Modified: trunk/libs/spirit/phoenix/example/users_manual/all_odds.cpp
==============================================================================
--- trunk/libs/spirit/phoenix/example/users_manual/all_odds.cpp (original)
+++ trunk/libs/spirit/phoenix/example/users_manual/all_odds.cpp 2011-01-19 06:20:30 EST (Wed, 19 Jan 2011)
@@ -1,7 +1,7 @@
/*=============================================================================
Copyright (c) 2001-2007 Joel de Guzman
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#include <vector>
@@ -25,7 +25,7 @@
// Print all odd contents of an stl container c
for_each(c.begin(), c.end(),
- if_(arg1 % 2 == 1)
+ if_(arg1 % 2 != 0)
[
cout << arg1 << ' '
]
Modified: trunk/libs/spirit/phoenix/example/users_manual/function.cpp
==============================================================================
--- trunk/libs/spirit/phoenix/example/users_manual/function.cpp (original)
+++ trunk/libs/spirit/phoenix/example/users_manual/function.cpp 2011-01-19 06:20:30 EST (Wed, 19 Jan 2011)
@@ -1,7 +1,7 @@
/*=============================================================================
Copyright (c) 2001-2003 Joel de Guzman
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#include <vector>
@@ -14,18 +14,18 @@
using namespace boost::phoenix::arg_names;
using namespace std;
-struct is_odd_
+struct is_odd_
{
template <typename Arg>
- struct result
- {
- typedef bool type;
+ struct result
+ {
+ typedef bool type;
};
template <typename Arg>
bool operator()(Arg arg1) const
- {
- return arg1 % 2 == 1;
+ {
+ return arg1 % 2 != 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