Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48974 - trunk/libs/spirit/phoenix/test/operator
From: joel_at_[hidden]
Date: 2008-09-26 08:37:39


Author: djowel
Date: 2008-09-26 08:37:38 EDT (Fri, 26 Sep 2008)
New Revision: 48974
URL: http://svn.boost.org/trac/boost/changeset/48974

Log:
fixed bug. missing specialization for nullary version.
Text files modified:
   trunk/libs/spirit/phoenix/test/operator/member.cpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/libs/spirit/phoenix/test/operator/member.cpp
==============================================================================
--- trunk/libs/spirit/phoenix/test/operator/member.cpp (original)
+++ trunk/libs/spirit/phoenix/test/operator/member.cpp 2008-09-26 08:37:38 EDT (Fri, 26 Sep 2008)
@@ -23,6 +23,7 @@
 
         int func(int n) const { return n; }
         int dunc() { return 10; }
+ int kunc() const { return 555; }
     };
 }
 
@@ -50,6 +51,7 @@
     BOOST_TEST((val(ptr)->*&Test::dunc)()() == 10);
 
     BOOST_TEST((arg1->*&Test::func)(5)(ptr) == 5);
+ BOOST_TEST((arg1->*&Test::kunc)()(ptr));
 
     shared_ptr<Test> sptr(new Test(test));
 


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