From cbad5d4ac600a3a72e3451cf2efc6146c31de1cd Mon Sep 17 00:00:00 2001 From: John Fletcher Date: Mon, 2 Feb 2015 22:22:35 +0000 Subject: [PATCH] scope/local_variable.hpp Put in test is_value --- include/boost/phoenix/scope/local_variable.hpp | 3 +++ 1 file changed, 3 insertions(+) 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)); }