From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-23 15:11:32
> > What about orthogonality?
> VERY good point!
> But I'm not sure if a plain string is right, tough.
> If you want to check if the external variable is there, and only then get
> it, you'll need two calls to the enviroment:
> if ( exist_in_environment["http_proxy"] )
> foo ( environment["http_proxy"] ) ;
> AFAICT, this can be solved in 3 ways:
I might be missing something but why shouldn't 'environment' be a std::map
(actually it wouldn't be a std::map but offer the same interface)?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk