Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:05

0001 // Copyright (c) 2016 Klemens D. Morgenstern
0002 //
0003 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 
0007 #ifndef BOOST_PROCESS_DETAIL_POSIX_ENV_INIT_HPP_
0008 #define BOOST_PROCESS_DETAIL_POSIX_ENV_INIT_HPP_
0009 
0010 
0011 #include <boost/process/detail/config.hpp>
0012 #include <boost/process/detail/posix/handler.hpp>
0013 #include <boost/process/environment.hpp>
0014 
0015 namespace boost { namespace process { namespace detail { namespace posix {
0016 
0017 template<typename Char>
0018 struct env_init;
0019 
0020 template<>
0021 struct env_init<char> : handler_base_ext
0022 {
0023     boost::process::environment env;
0024 
0025     env_init(boost::process::environment && env) : env(std::move(env)) {};
0026     env_init(const boost::process::environment & env) : env(env) {};
0027 
0028 
0029     template <class Executor>
0030     void on_setup(Executor &exec) const
0031     {
0032         exec.env = env._env_impl;
0033     }
0034 
0035 };
0036 
0037 }}}}
0038 
0039 
0040 
0041 #endif /* BOOST_PROCESS_DETAIL_WINDOWS_ENV_INIT_HPP_ */