diff --git a/include/boost/phoenix/scope/local_variable.hpp b/include/boost/phoenix/scope/local_variable.hpp index d62a5bb..a1d4523 100644 --- a/include/boost/phoenix/scope/local_variable.hpp +++ b/include/boost/phoenix/scope/local_variable.hpp @@ -127,6 +127,9 @@ namespace boost { namespace phoenix typedef detail::eval_local eval_local; + // Detect if the return_type is for a value. + typedef typename is_value::type is_value_type; + return eval_local::template get( phoenix::env(ctx)); }