Boost logo

Boost-Commit :

From: eric_at_[hidden]
Date: 2008-01-24 16:06:23


Author: eric_niebler
Date: 2008-01-24 16:06:23 EST (Thu, 24 Jan 2008)
New Revision: 42951
URL: http://svn.boost.org/trac/boost/changeset/42951

Log:
peeker optimization looks inside independent sub-expressions
Text files modified:
   trunk/boost/xpressive/detail/core/peeker.hpp | 7 +++++++
   1 files changed, 7 insertions(+), 0 deletions(-)

Modified: trunk/boost/xpressive/detail/core/peeker.hpp
==============================================================================
--- trunk/boost/xpressive/detail/core/peeker.hpp (original)
+++ trunk/boost/xpressive/detail/core/peeker.hpp 2008-01-24 16:06:23 EST (Thu, 24 Jan 2008)
@@ -232,6 +232,13 @@
         return mpl::false_();
     }
 
+ template<typename Xpr>
+ mpl::false_ accept(keeper_matcher<Xpr> const &xpr)
+ {
+ xpr.xpr_.peek(*this);
+ return mpl::false_();
+ }
+
     template<typename Traits>
     void set_traits(Traits const &traits)
     {


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