Boost logo

Boost-Commit :

From: eric_at_[hidden]
Date: 2007-11-08 13:55:00


Author: eric_niebler
Date: 2007-11-08 13:55:00 EST (Thu, 08 Nov 2007)
New Revision: 40941
URL: http://svn.boost.org/trac/boost/changeset/40941

Log:
extend proto lambdas
Text files modified:
   branches/proto/v3/boost/xpressive/proto3/transform.hpp | 10 ++++++++++
   1 files changed, 10 insertions(+), 0 deletions(-)

Modified: branches/proto/v3/boost/xpressive/proto3/transform.hpp
==============================================================================
--- branches/proto/v3/boost/xpressive/proto3/transform.hpp (original)
+++ branches/proto/v3/boost/xpressive/proto3/transform.hpp 2007-11-08 13:55:00 EST (Thu, 08 Nov 2007)
@@ -92,6 +92,16 @@
               : R::template apply<Expr, State, Visitor>
             {};
 
+ template<typename R, typename... Args, typename Expr, typename State, typename Visitor>
+ struct apply_lambda_<R(Args...), Expr, State, Visitor, no_transform>
+ : case_<_, R(Args...)>::template apply<Expr, State, Visitor>
+ {};
+
+ template<typename R, typename... Args, typename Expr, typename State, typename Visitor>
+ struct apply_lambda_<R(*)(Args...), Expr, State, Visitor, no_transform>
+ : case_<_, R(*)(Args...)>::template apply<Expr, State, Visitor>
+ {};
+
             // work around GCC bug
             template<typename Tag, typename Args, long N, typename Expr, typename State, typename Visitor>
             struct apply_lambda_<expr<Tag, Args, N>, Expr, State, Visitor, no_transform>


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