#include <boost/process.hpp> 
#include <iostream> 

using namespace boost::process; 

int main() 
{ 
  self &s = self::get_instance(); 
  environment env = s.get_environment(); 
  for (environment::iterator it = env.begin(); it != env.end(); ++it) 
    std::cout << it->first << "=" << it->second << std::endl; 
} 