Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49119 - trunk/libs/spirit/phoenix/test/bind
From: joel_at_[hidden]
Date: 2008-10-02 18:30:53


Author: djowel
Date: 2008-10-02 18:30:53 EDT (Thu, 02 Oct 2008)
New Revision: 49119
URL: http://svn.boost.org/trac/boost/changeset/49119

Log:
Bug fix (reported by Steven Watanabe)
Text files modified:
   trunk/libs/spirit/phoenix/test/bind/bind_function_object_tests.cpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: trunk/libs/spirit/phoenix/test/bind/bind_function_object_tests.cpp
==============================================================================
--- trunk/libs/spirit/phoenix/test/bind/bind_function_object_tests.cpp (original)
+++ trunk/libs/spirit/phoenix/test/bind/bind_function_object_tests.cpp 2008-10-02 18:30:53 EDT (Thu, 02 Oct 2008)
@@ -101,6 +101,12 @@
     int const ic5 = 5;
     // testing consts
     BOOST_TEST(bind(sqr(), arg1)(ic5) == (ic5*ic5));
+
+ // From Steven Watanabe
+ sqr s;
+ int x = 2;
+ int result = bind(ref(s), _1)(x);
+ BOOST_TEST(result == 4);
 
     return boost::report_errors();
 }


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