comparison DEPENDENCIES/generic/include/boost/phoenix/statement/for.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
37 result_type 37 result_type
38 operator()( 38 operator()(
39 Init const& init 39 Init const& init
40 , Cond const& cond 40 , Cond const& cond
41 , Step const& step 41 , Step const& step
42 , Do const& do_ 42 , Do const& do_it
43 , Context const & ctx 43 , Context const & ctx
44 ) const 44 ) const
45 { 45 {
46 for(boost::phoenix::eval(init, ctx); boost::phoenix::eval(cond, ctx); boost::phoenix::eval(step, ctx)) 46 for(boost::phoenix::eval(init, ctx); boost::phoenix::eval(cond, ctx); boost::phoenix::eval(step, ctx))
47 boost::phoenix::eval(do_, ctx); 47 boost::phoenix::eval(do_it, ctx);
48 } 48 }
49 }; 49 };
50 50
51 template <typename Dummy> 51 template <typename Dummy>
52 struct default_actions::when<rule::for_, Dummy> 52 struct default_actions::when<rule::for_, Dummy>
54 {}; 54 {};
55 55
56 template <typename Init, typename Cond, typename Step> 56 template <typename Init, typename Cond, typename Step>
57 struct for_gen 57 struct for_gen
58 { 58 {
59 for_gen(Init const& init, Cond const& cond, Step const& step) 59 for_gen(Init const& init_, Cond const& cond_, Step const& step_)
60 : init(init), cond(cond), step(step) {} 60 : init(init_), cond(cond_), step(step_) {}
61 61
62 template <typename Do> 62 template <typename Do>
63 typename expression::for_<Init, Cond, Step, Do>::type const 63 typename expression::for_<Init, Cond, Step, Do>::type const
64 operator[](Do const& do_) const 64 operator[](Do const& do_it) const
65 { 65 {
66 return 66 return
67 expression:: 67 expression::
68 for_<Init, Cond, Step, Do>:: 68 for_<Init, Cond, Step, Do>::
69 make(init, cond, step, do_); 69 make(init, cond, step, do_it);
70 } 70 }
71 71
72 Init init; 72 Init init;
73 Cond cond; 73 Cond cond;
74 Step step; 74 Step step;