| 120 | class Process::Impl { |
| 121 | public: |
| 122 | Impl() { |
| 123 | // Get a copy of the current environment. |
| 124 | #ifdef BOOST_PROCESS_AVAILABLE |
| 125 | # ifdef BOOST_PROCESS_USE_V2 |
| 126 | for (const auto& kv : process::environment::current()) { |
| 127 | env_[kv.key()] = process::environment::value(kv.value()); |
| 128 | } |
| 129 | # else |
| 130 | env_ = process::environment(boost::this_process::environment()); |
| 131 | # endif |
| 132 | #endif |
| 133 | } |
| 134 | |
| 135 | ~Impl() { |
| 136 | #ifdef BOOST_PROCESS_AVAILABLE |