X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=boost%2Fphoenix%2Fscope%2Fthis.hpp;h=ebc08889b81026201b68b5789451a6d5a3e8cc06;hb=08c1e93fa36a49f49325a07fe91ff92c964c2b6c;hp=de50e80862a9f578d4f55b36e989d46bf5b29642;hpb=bb4dd8289b351fae6b55e303f189127a394a1edd;p=platform%2Fupstream%2Fboost.git diff --git a/boost/phoenix/scope/this.hpp b/boost/phoenix/scope/this.hpp index de50e80..ebc0888 100644 --- a/boost/phoenix/scope/this.hpp +++ b/boost/phoenix/scope/this.hpp @@ -62,56 +62,56 @@ namespace boost { namespace phoenix { template struct result { - typedef - typename proto::detail::uncvref< - typename result_of::env< - Context - >::type - >::type - outer_env_type; - - typedef - typename remove_pointer< - typename remove_reference< - typename fusion::result_of::at_c< - outer_env_type - , 0 - >::type - >::type - >::type - actor_type; - - typedef - typename result_of::eval< - A0 const & - , Context const & - >::type - a0_type; - - typedef - vector2 - inner_env_type; - - typedef - scoped_environment< - inner_env_type - , outer_env_type - , vector0<> - , detail::map_local_index_to_tuple<> - > - env_type; - - typedef - typename result_of::eval< - actor_type const & - , typename result_of::context< - inner_env_type - , typename result_of::actions< - Context - >::type - >::type - >::type - type; + typedef + typename proto::detail::uncvref< + typename result_of::env< + Context + >::type + >::type + outer_env_type; + + typedef + typename remove_pointer< + typename remove_reference< + typename fusion::result_of::at_c< + outer_env_type + , 0 + >::type + >::type + >::type + actor_type; + + typedef + typename result_of::eval< + A0 const & + , Context const & + >::type + a0_type; + + typedef + vector2 + inner_env_type; + + typedef + scoped_environment< + inner_env_type + , outer_env_type + , vector0<> + , detail::map_local_index_to_tuple<> + > + env_type; + + typedef + typename result_of::eval< + actor_type const & + , typename result_of::context< + inner_env_type + , typename result_of::actions< + Context + >::type + >::type + >::type + type; }; template @@ -121,50 +121,50 @@ namespace boost { namespace phoenix { //std::cout << typeid(checker).name() << "\n"; //std::cout << typeid(checker).name() << "\n"; - typedef - typename proto::detail::uncvref< - typename result_of::env< - Context - >::type - >::type - outer_env_type; - - typedef - typename remove_pointer< - typename remove_reference< - typename fusion::result_of::at_c< - outer_env_type - , 0 - >::type - >::type - >::type - actor_type; - - typedef - typename result_of::eval< - A0 const & - , Context const & - >::type - a0_type; - - typedef - vector2 - inner_env_type; - - typedef - scoped_environment< - inner_env_type - , outer_env_type - , vector0<> - , detail::map_local_index_to_tuple<> - > - env_type; - - inner_env_type inner_env = {fusion::at_c<0>(phoenix::env(ctx)), phoenix::eval(a0, ctx)}; - vector0<> locals; - env_type env(inner_env, phoenix::env(ctx), locals); - - return phoenix::eval(*fusion::at_c<0>(phoenix::env(ctx)), phoenix::context(inner_env, phoenix::actions(ctx))); + typedef + typename proto::detail::uncvref< + typename result_of::env< + Context + >::type + >::type + outer_env_type; + + typedef + typename remove_pointer< + typename remove_reference< + typename fusion::result_of::at_c< + outer_env_type + , 0 + >::type + >::type + >::type + actor_type; + + typedef + typename result_of::eval< + A0 const & + , Context const & + >::type + a0_type; + + typedef + vector2 + inner_env_type; + + typedef + scoped_environment< + inner_env_type + , outer_env_type + , vector0<> + , detail::map_local_index_to_tuple<> + > + env_type; + + inner_env_type inner_env = {fusion::at_c<0>(phoenix::env(ctx)), phoenix::eval(a0, ctx)}; + vector0<> locals; + env_type env(inner_env, phoenix::env(ctx), locals); + + return phoenix::eval(*fusion::at_c<0>(phoenix::env(ctx)), phoenix::context(inner_env, phoenix::actions(ctx))); //return (*fusion::at_c<0>(phoenix::env(ctx)))(eval(a0, ctx)); } }; @@ -174,17 +174,17 @@ namespace boost { namespace phoenix { : call {}; - template + template struct is_nullary::when : proto::make {}; - template - typename expression::this_::type const - this_(A0 const & a0) - { - return expression::this_::make(a0); - } + template + typename expression::this_::type const + this_(A0 const & a0) + { + return expression::this_::make(a0); + } }}