1 /*=============================================================================
2 Copyright (c) 2001-2007 Joel de Guzman
3 Copyright (c) 2004 Daniel Wallin
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #ifndef PHOENIX_SCOPE_SCOPED_ENVIRONMENT_HPP
9 #define PHOENIX_SCOPE_SCOPED_ENVIRONMENT_HPP
11 namespace boost { namespace phoenix
13 template <typename Env, typename OuterEnv, typename Locals, typename Map>
14 struct scoped_environment
17 typedef OuterEnv outer_env_type;
18 typedef Locals locals_type;
20 typedef typename Env::args_type args_type;
21 typedef typename Env::tie_type tie_type;
25 , OuterEnv const& outer_env
28 , outer_env(outer_env)
38 OuterEnv const& outer_env;
42 // silence MSVC warning C4512: assignment operator could not be generated
43 scoped_environment& operator= (scoped_environment const&);